2019-05-13 19:10:23 +08:00
|
|
|
const stats = {
|
|
|
|
|
hash: false,
|
|
|
|
|
timings: false,
|
|
|
|
|
builtAt: false,
|
|
|
|
|
assets: false,
|
|
|
|
|
chunks: true,
|
|
|
|
|
chunkRelations: true,
|
2019-06-11 23:46:36 +08:00
|
|
|
chunkModules: true,
|
2019-05-13 19:10:23 +08:00
|
|
|
chunkOrigins: true,
|
|
|
|
|
entrypoints: true,
|
|
|
|
|
modules: false
|
|
|
|
|
};
|
2020-04-20 13:36:55 +08:00
|
|
|
/** @type {import("../../../").Configuration} */
|
2019-05-13 19:10:23 +08:00
|
|
|
module.exports = {
|
|
|
|
|
mode: "production",
|
|
|
|
|
entry: {
|
|
|
|
|
main: "./"
|
|
|
|
|
},
|
|
|
|
|
output: {
|
|
|
|
|
filename: "default/[name].js"
|
|
|
|
|
},
|
|
|
|
|
optimization: {
|
|
|
|
|
splitChunks: {
|
2020-07-13 16:28:48 +08:00
|
|
|
minSize: 100,
|
|
|
|
|
enforceSizeThreshold: 200
|
2019-05-13 19:10:23 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
stats
|
|
|
|
|
};
|