41 lines
534 B
JavaScript
41 lines
534 B
JavaScript
const base = {
|
|
mode: "production",
|
|
optimization: {
|
|
moduleIds: "named",
|
|
chunkIds: "named",
|
|
runtimeChunk: true,
|
|
splitChunks: {
|
|
minSize: 0,
|
|
chunks: "all",
|
|
cacheGroups: {
|
|
all: {
|
|
priority: -30
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
module.exports = [
|
|
{
|
|
entry: "./a.js",
|
|
output: {
|
|
filename: "a-[name]-[chunkhash].js"
|
|
},
|
|
...base
|
|
},
|
|
{
|
|
entry: "./b.js",
|
|
output: {
|
|
filename: "b-[name]-[chunkhash].js"
|
|
},
|
|
...base
|
|
},
|
|
{
|
|
entry: "./c.js",
|
|
output: {
|
|
filename: "c-[name]-[chunkhash].js"
|
|
},
|
|
...base
|
|
}
|
|
];
|