mirror of https://github.com/webpack/webpack.git
29 lines
691 B
JavaScript
29 lines
691 B
JavaScript
var webpack = require("../../../");
|
|
/** @type {import("../../../").Configuration} */
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./index",
|
|
cache: true, // AggressiveSplittingPlugin rebuilds multiple times, we need to cache the assets
|
|
output: {
|
|
filename: "[chunkhash].js",
|
|
chunkFilename: "[chunkhash].js"
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.AggressiveSplittingPlugin({
|
|
minSize: 1500,
|
|
maxSize: 2500
|
|
})
|
|
],
|
|
recordsInputPath: __dirname + "/input-records.json",
|
|
//recordsOutputPath: __dirname + "/records.json",
|
|
stats: {
|
|
chunks: true,
|
|
chunkModules: true,
|
|
dependentModules: true,
|
|
chunkOrigins: true,
|
|
entrypoints: true,
|
|
modules: false,
|
|
publicPath: true
|
|
}
|
|
};
|