2025-07-02 20:10:54 +08:00
|
|
|
"use strict";
|
|
|
|
|
2013-11-20 01:09:26 +08:00
|
|
|
module.exports = {
|
2023-03-12 10:27:40 +08:00
|
|
|
// mode: "development" || "production",
|
2013-11-20 01:09:26 +08:00
|
|
|
entry: {
|
|
|
|
pageA: "./pageA",
|
|
|
|
pageB: "./pageB"
|
|
|
|
},
|
2017-12-14 17:09:09 +08:00
|
|
|
optimization: {
|
2018-01-20 00:06:59 +08:00
|
|
|
splitChunks: {
|
|
|
|
cacheGroups: {
|
|
|
|
commons: {
|
|
|
|
name: "commons",
|
|
|
|
chunks: "initial",
|
|
|
|
minChunks: 2,
|
|
|
|
minSize: 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-04-25 01:57:25 +08:00
|
|
|
chunkIds: "named" // To keep filename consistent between different modes (for example building only)
|
2017-12-14 17:09:09 +08:00
|
|
|
}
|
2017-01-11 17:51:58 +08:00
|
|
|
};
|