Non-Digest Webpack Plugin
Webpack plugin to emit both both digest and non-digest assets.Given a webpack configuration that emits files with filenames with digests,
module.exports = {
// ...
output: {
filename: '[name]-[chunkhash].js
},
// ...
plugins: [
new NonDigestPlugin()
}
this plugin is intended to emit the asset with the canonical filename as well.
Asset Size Chunks Chunk Names
app-3618228d7f2beda4fa0b.js 2.72 kB 0 [emitted] app
app.js 2.72 kB [emitted]
Install
npm install --save-dev non-digest-webpack-plugin
Usage
In your webpack configuration:const NonDigestPlugin = require('non-digest-webpack-plugin');
module.exports = {
// ...
plugins: [
new NonDigestPlugin()
]
}