mirror of https://github.com/webpack/webpack.git
23 lines
401 B
JavaScript
23 lines
401 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
// mode: "development" || "production",
|
|
entry: {
|
|
pageA: "./pageA",
|
|
pageB: "./pageB"
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
cacheGroups: {
|
|
commons: {
|
|
name: "commons",
|
|
chunks: "initial",
|
|
minChunks: 2,
|
|
minSize: 0
|
|
}
|
|
}
|
|
},
|
|
chunkIds: "named" // To keep filename consistent between different modes (for example building only)
|
|
}
|
|
};
|