webpack/examples/multiple-entry-points/webpack.config.js

23 lines
401 B
JavaScript
Raw Normal View History

"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"
},
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)
}
2017-01-11 17:51:58 +08:00
};