{"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,"search_vec":"'2017':40 '3':44 'allow':28 'altern':49 'base':31 'built':54 'built-in':53 'certain':20 'chunk':3,16,21,34 'configur':61 'css':24 'custom':59 'e.g':23 'entri':15,56 'file':12,22 'filter':32 'global':36 'javascript':62 'js':25 'lower':46 'need':27 'nich':48 'option':57 'output':11,60 'per':33 'plugin':5,7 'regex':30 'regex-bas':29 'sinc':39 'specifi':14 'suppress':2,10 'suppress-chunks-webpack-plugin':1 'updat':38 'use':17 'v1.0.6':8 'webpack':4,6,43,51 'work':41","created_at":"2026-04-25T11:23:55.265828+00:00","updated_at":"2026-04-25T11:23:55.265828+00:00","problems":[],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/alxlu/suppress-chunks-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/suppress-chunks-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}