2
Tue Oct 25 2022 11:50:49 GMT+0000 (Coordinated Universal Time)
Saved by
@Vrushabh_123
// 1. change output
output: {
filename: "[name].bundle.js",
path: path.resolve(__dirname, "dist"),
clean: true
},
// 2. add optimisation options
optimization: {
splitChunks: {
cacheGroups: {
node_vendors: {
name: "vendor",
test: /[\\/]node_modules[\\/]/,
chunks: "all",
priority: 1
}
}
}
},
content_copyCOPY
Comments