mirror of https://github.com/webpack/webpack.git
30 lines
477 B
JavaScript
30 lines
477 B
JavaScript
/** @type {import("../../../../").Configuration} */
|
|
module.exports = {
|
|
entry: {
|
|
bundle0: "./index",
|
|
a: "./a",
|
|
b: "./b"
|
|
},
|
|
output: {
|
|
filename: "[name].js"
|
|
},
|
|
optimization: {
|
|
chunkIds: "named",
|
|
sideEffects: false,
|
|
splitChunks: {
|
|
cacheGroups: {
|
|
default: false,
|
|
defaultVendors: false,
|
|
test: {
|
|
test: /shared/,
|
|
minChunks: 1,
|
|
usedExports: false,
|
|
chunks: "initial",
|
|
minSize: 100,
|
|
minRemainingSize: 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|