mirror of https://github.com/webpack/webpack.git
27 lines
413 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|