Is excludeAssets the same as excludeChunks?
simkessy opened this issue · 1 comments
simkessy commented
Im upgrading from version 3 to version 5 and noticed that excludeAssets is not an option anymore. I tried to use it with this html-webpack-exclude-assets-plugin
What's the version 5 of doing this? My config used to look like this:
const PRODUCTION_PLUGINS = [
new CompressionWebpackPlugin(),
new HtmlWebpackPlugin({
template: 'templates/index.html',
filename: 'templates/index.html',
hash: true,
chunks: ['index'],
}),
new HtmlWebpackPlugin({
template: 'templates/base.html',
filename: 'templates/base.html',
hash: true,
chunks: ['vendor_styles', 'custom_styles'],
excludeChunks: [/vendor_styles.*.js/, /custom_styles.*.js/],
}),
new HtmlWebpackExcludeAssetsPlugin(),
];
alexander-akait commented
Closing due to inactivity. Yes, it is the same.