webpack/test/configCases/split-chunks/runtime-chunk/webpack.config.js

27 lines
413 B
JavaScript

const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
a: "./a",
b: "./b"
},
target: "web",
output: {
filename: "[name].js"
},
optimization: {
chunkIds: "named",
runtimeChunk: "single",
splitChunks: {
cacheGroups: {
dep: {
chunks: "all",
test: path.resolve(__dirname, "shared.js"),
enforce: true
}
}
}
}
};