When using chunk-manifest-webpack-plugin with CommonsChunkPlugin, it seems my manifest file is "leaking" into the common chunk's files. I'm including new ChunkManifestPlugin({filename: 'wpManifest.json'}) in my plugins, as well as
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks: ({resource}) => /node_modules/.test(resource)
})
Looking in stats.compilation.chunks, I see that the vendor chunk now has the manifest listed in it!
// from console.log of parts of stats.compilation.chunks
foo [ 'fdc9b7b128.js', 'fdc9b7b128.js.map' ]
bar [ '2f10fcf981.js', '2f10fcf981.js.map' ]
app [ 'app-36a1f801d3.js', 'app-36a1f801d3.js.map' ]
vendor [ 'wpManifest.json',
'vendor-8d40f60f58.js',
'vendor-8d40f60f58.js.map' ]
Surely that shouldn't be there?
When using
chunk-manifest-webpack-pluginwithCommonsChunkPlugin, it seems my manifest file is "leaking" into the common chunk's files. I'm includingnew ChunkManifestPlugin({filename: 'wpManifest.json'})in my plugins, as well asLooking in
stats.compilation.chunks, I see that thevendorchunk now has the manifest listed in it!Surely that shouldn't be there?