{"id":20588,"library":"suppress-chunks-webpack-plugin","title":"suppress-chunks-webpack-plugin","description":"Webpack plugin (v1.0.6) to suppress output files for specified entry chunks, useful when only certain chunk files (e.g., CSS, JS) are needed. Allows regex-based filtering per chunk or globally. No updates since 2017; works with webpack 3 and lower. A niche alternative to webpack's built-in entry options or custom output configuration.","status":"maintenance","version":"1.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/alxlu/suppress-chunks-webpack-plugin","tags":["javascript"],"install":[{"cmd":"npm install suppress-chunks-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add suppress-chunks-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add suppress-chunks-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not export ESM; only CommonJS require works.","wrong":"import SuppressChunksPlugin from 'suppress-chunks-webpack-plugin';","symbol":"SuppressChunksPlugin","correct":"var SuppressChunksPlugin = require('suppress-chunks-webpack-plugin');"}],"quickstart":{"code":"var SuppressChunksPlugin = require('suppress-chunks-webpack-plugin');\n\nmodule.exports = {\n  entry: {\n    one: './file.js',\n    foo: './foo.js',\n    bar: './bar.js',\n    main: './index.js',\n  },\n  output: {\n    path: path.join(__dirname, 'dist'),\n    filename: '[name].js',\n  },\n  plugins: [\n    new SuppressChunksPlugin(['one', 'foo'])\n  ]\n};","lang":"javascript","_review":false,"problems":[{"fix":"Run `npm install suppress-chunks-webpack-plugin --save-dev` and double-check the package name.","cause":"Package not installed in node_modules or name typo.","error":"Module not found: Error: Can't resolve 'suppress-chunks-webpack-plugin'"},{"fix":"Use `var SuppressChunksPlugin = require('suppress-chunks-webpack-plugin');`","cause":"Using ES6 import or incorrect require.","error":"TypeError: SuppressChunksPlugin is not a constructor"}],"warnings":[{"fix":"Use `require()` instead of `import`.","message":"Package only supports CommonJS; does not export ESM.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider using webpack's built-in `output.filename` option or other modern alternatives.","message":"Plugin was designed for webpack 3 and earlier; may not work with webpack 4+.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Evaluate if this plugin is still needed; consider alternatives.","message":"No updates since 2017; likely unmaintained.","severity":"deprecated","affected_versions":">=1.0.0"}],"description":"Suppress output files for entry chunks 'one' and 'foo' in a webpack 3 configuration using CommonJS require.","_review_reason":""},"warnings":[],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}