{"id":26648,"library":"webpack-manifest-resource-plugin","title":"Webpack Manifest Resource Plugin","description":"Normalizes JS/CSS resource dependencies for webpack-manifest-plugin. Version 4.2.7. Integrates with CommonsChunkPlugin to track chunk dependencies. Produces a manifest with a 'deps' field mapping entry points to their JS and CSS assets. Supports all webpack-manifest-plugin options.","status":"active","version":"4.2.7","language":"javascript","source_language":"en","source_url":"https://github.com/hubcarl/webpack-manifest-resource-plugin","tags":["javascript","webpack","manifest","webpack-manifest-plugin"],"install":[{"cmd":"npm install webpack-manifest-resource-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-manifest-resource-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-manifest-resource-plugin","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CJS only. No default export. Use require.","wrong":"import ManifestPlugin from 'webpack-manifest-resource-plugin';","symbol":"ManifestPlugin","correct":"const ManifestPlugin = require('webpack-manifest-resource-plugin');"},{"note":"Constructor is called as a class. No other naming.","wrong":"new webpackManifestResourcePlugin()","symbol":"ManifestPlugin","correct":"new ManifestPlugin()"}],"quickstart":{"code":"// webpack.config.js\nconst ManifestPlugin = require('webpack-manifest-resource-plugin');\n\nmodule.exports = {\n  entry: { main: './src/index.js' },\n  output: { filename: '[name].[hash].js' },\n  plugins: [\n    new ManifestPlugin({\n      commonsChunk: ['vendor']\n    })\n  ]\n};","lang":"javascript","description":"Shows basic usage with CommonsChunkPlugin option."},"warnings":[{"fix":"Install webpack-manifest-plugin: npm install --save-dev webpack-manifest-plugin","message":"Requires webpack-manifest-plugin to be installed separately.","severity":"gotcha","affected_versions":">=4.0"},{"fix":"Migrate to SplitChunksPlugin; plugin may not work as expected with webpack 4+.","message":"CommonsChunkPlugin is deprecated in webpack 4+. Use SplitChunksPlugin instead.","severity":"gotcha","affected_versions":">=4.2"},{"fix":"Use require('webpack-manifest-resource-plugin')","message":"Only supports CJS require; ESM import not available.","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev webpack-manifest-resource-plugin","cause":"Plugin not installed or missing dependency.","error":"Error: Cannot find module 'webpack-manifest-resource-plugin'"},{"fix":"Use: const ManifestPlugin = require('webpack-manifest-resource-plugin');","cause":"Using import instead of require.","error":"TypeError: ManifestPlugin is not a constructor"},{"fix":"Run: npm install --save-dev webpack-manifest-plugin","cause":"webpack-manifest-plugin is a peer dependency not installed.","error":"Error: Cannot find module 'webpack-manifest-plugin'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}