webpack/test/statsCases/split-chunks-keep-remaining.../webpack.config.js

34 lines
501 B
JavaScript

"use strict";
const stats = {
hash: false,
timings: false,
builtAt: false,
assets: false,
chunks: true,
chunkRelations: true,
chunkModules: true,
dependentModules: true,
chunkOrigins: true,
entrypoints: true,
modules: false
};
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: {
main: "./"
},
output: {
filename: "default/[name].js"
},
optimization: {
splitChunks: {
minSize: 100,
enforceSizeThreshold: 200
}
},
stats
};