{"id":27366,"library":"run-plugin-webpack","title":"run-plugin-webpack","description":"Provides a basic class for creating Webpack plugins. Version 1.0.0 offers a straightforward structure to extend and implement the `apply` method. Released as an initial version with minimal documentation. Differentiates by being a minimal base class for Webpack plugin development.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/HaoyCn/run-plugin-webpack","tags":["javascript","webpack","plugin"],"install":[{"cmd":"npm install run-plugin-webpack","lang":"bash","label":"npm"},{"cmd":"yarn add run-plugin-webpack","lang":"bash","label":"yarn"},{"cmd":"pnpm add run-plugin-webpack","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"symbol":"RunPluginWebpack","correct":"import { RunPluginWebpack } from 'run-plugin-webpack'"},{"note":"Package may not support CommonJS; prefer ESM import.","wrong":"const RunPluginWebpack = require('run-plugin-webpack')","symbol":"default","correct":"import RunPluginWebpack from 'run-plugin-webpack'"},{"note":"Exported class is named; default export may not exist.","wrong":"import runPluginWebpack from 'run-plugin-webpack'","symbol":"RunPluginWebpack","correct":"import { RunPluginWebpack } from 'run-plugin-webpack'"}],"quickstart":{"code":"import { RunPluginWebpack } from 'run-plugin-webpack';\n\nclass MyPlugin extends RunPluginWebpack {\n  apply(compiler) {\n    compiler.hooks.done.tap('MyPlugin', () => {\n      console.log('Build completed!');\n    });\n  }\n}\n\nmodule.exports = MyPlugin;","lang":"javascript","description":"Shows how to extend RunPluginWebpack to create a custom Webpack plugin."},"warnings":[{"fix":"Refer to source or contact maintainer for usage details.","message":"Package documentation is incomplete; README only contains 'TO DO.'","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install run-plugin-webpack --save-dev` and ensure import is correct.","cause":"Package not installed or incorrect import path.","error":"Cannot find module 'run-plugin-webpack'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}