strip-dll-manifest-webpack-plugin
v0.1.0
Published
A Webpack plugin to strip useless modules in manifest.json generated by DllPlugin
Downloads
5
Readme
StripDllManifestWebpackPlugin
A Webpack plugin to strip useless modules in manifest.json generated by DllPlugin.
When using DllPlugin to build a bundle, it may add some global js files to the manfiest.json file, causing DllReferencePlugin to mistakenly believe that all entry files in the entry configuration depend on it.
The file currently removed by this plugin is: node_modules/webpack/buildin/global.js
Install
npm install --save-dev strip-dll-manifest-webpack-plugin
Usage
In your webpack.config.js:
const StripDllManifestWebpackPlugin = require('strip-dll-manifest-webpack-plugin');
module.exports = {
plugins: [
new webpack.DllPlugin({
name: '[name]_lib',
path: '/path/to/dll-manifest.json'
}),
new StripDllManifestWebpackPlugin({
manifestPath: '/path/to/dll-manifest.json'
})
]
}