0.1.0 • Published 4 years ago

strip-dll-manifest-webpack-plugin v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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'
    })
  ]
}

License

MIT