1.0.2 • Published 7 years ago
chunk-meta-webpack-plugin v1.0.2
npm i -D chunk-meta-webpack-pluginnpm run testwebpack.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.