webpack/test/configCases/web/prefetch-split-chunks/webpack.config.js

26 lines
390 B
JavaScript

module.exports = {
target: "web",
output: {
filename: "[name].js",
chunkFilename: "[name].js",
crossOriginLoading: "anonymous"
},
performance: {
hints: false
},
optimization: {
minimize: false,
chunkIds: "named",
splitChunks: {
cacheGroups: {
separate: {
enforce: true,
chunks: "all",
test: /public-path/
}
}
},
runtimeChunk: true
}
};