2016-07-13 17:03:14 +08:00
|
|
|
var webpack = require("../../../");
|
|
|
|
|
module.exports = {
|
|
|
|
|
entry: "./index",
|
|
|
|
|
output: {
|
|
|
|
|
filename: "[chunkhash].js",
|
|
|
|
|
chunkFilename: "[chunkhash].js"
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
new webpack.optimize.AggressiveSplittingPlugin({
|
|
|
|
|
chunkOverhead: 0,
|
|
|
|
|
entryChunkMultiplicator: 1,
|
|
|
|
|
minSize: 1500,
|
|
|
|
|
maxSize: 2500
|
|
|
|
|
})
|
|
|
|
|
],
|
|
|
|
|
recordsInputPath: __dirname + "/input-records.json",
|
2016-07-18 06:41:26 +08:00
|
|
|
//recordsOutputPath: __dirname + "/records.json",
|
2016-07-13 17:03:14 +08:00
|
|
|
stats: {
|
|
|
|
|
reasons: false,
|
|
|
|
|
chunkModules: true,
|
|
|
|
|
chunkOrigins: true,
|
|
|
|
|
entrypoints: true,
|
|
|
|
|
modules: false,
|
|
|
|
|
cached: true,
|
|
|
|
|
cachedAssets: true,
|
|
|
|
|
source: true,
|
|
|
|
|
errorDetails: true,
|
|
|
|
|
publicPath: true,
|
|
|
|
|
excludeModules: [
|
|
|
|
|
/e\.js/
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
};
|