npm i -D chunk-meta-webpack-plugin
npm run test
webpack.config.js
const ChunkMetaWebpackPlugin = require('chunk-meta-webpack-plugin')
module.exports = {
//...
plugins: [
new ChunkMetaWebpackPlugin()
]
}
Plugin will replace comments
/* inject-webpack-chunk-hash */
with chunk hash.
Can be useful when using an external library which renders html
outside current page and requires css
file which was created by using ExtractTextWebpackPlugin with name [name].[chunkHash].css
. Some printing libraries work like that.