Registry / devops / webpack-manifest-resource-plugin

webpack-manifest-resource-plugin

JSON →
library4.2.7jsnpmunverified

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.

npm install webpack-manifest-resource-plugin
INSTALL
IMPORT
SIG · WEBPACK-MANIFEST-R
W
webpack-manifest-resource-plugin
devopsjavascriptv4.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ManifestPlugin
const ManifestPlugin = require('webpack-manifest-resource-plugin');
import ManifestPlugin from 'webpack-manifest-resource-plugin';
CJS only. No default export. Use require.
ManifestPlugin
new ManifestPlugin()
new webpackManifestResourcePlugin()
Constructor is called as a class. No other naming.

Shows basic usage with CommonsChunkPlugin option.

// webpack.config.js const ManifestPlugin = require('webpack-manifest-resource-plugin'); module.exports = { entry: { main: './src/index.js' }, output: { filename: '[name].[hash].js' }, plugins: [ new ManifestPlugin({ commonsChunk: ['vendor'] }) ] };
Debug
Known issues
gotchaRequires webpack-manifest-plugin to be installed separately.
fix
Install webpack-manifest-plugin: npm install --save-dev webpack-manifest-plugin
affects: >=4.0
gotchaCommonsChunkPlugin is deprecated in webpack 4+. Use SplitChunksPlugin instead.
fix
Migrate to SplitChunksPlugin; plugin may not work as expected with webpack 4+.
affects: >=4.2
gotchaOnly supports CJS require; ESM import not available.
fix
Use require('webpack-manifest-resource-plugin')
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'webpack-manifest-resource-plugin'
Plugin not installed or missing dependency.
fix
Run: npm install --save-dev webpack-manifest-resource-plugin
TypeError: ManifestPlugin is not a constructor
Using import instead of require.
fix
Use: const ManifestPlugin = require('webpack-manifest-resource-plugin');
Error: Cannot find module 'webpack-manifest-plugin'
webpack-manifest-plugin is a peer dependency not installed.
fix
Run: npm install --save-dev webpack-manifest-plugin
Upgrade
Version history
4.2.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
webpack-manifest-resource-plugin — npm install webpack-manifest-resource-plugin · libregistry