mirror of https://github.com/webpack/webpack.git
21 lines
482 B
JavaScript
21 lines
482 B
JavaScript
|
var path = require("path");
|
||
|
var webpack = require("../../");
|
||
|
module.exports = {
|
||
|
entry: "./example",
|
||
|
output: {
|
||
|
path: path.join(__dirname, "js"),
|
||
|
filename: "[chunkhash].js",
|
||
|
chunkFilename: "[chunkhash].js"
|
||
|
},
|
||
|
plugins: [
|
||
|
new webpack.optimize.AggressiveSplittingPlugin({
|
||
|
minSize: 30000,
|
||
|
maxSize: 50000
|
||
|
}),
|
||
|
new webpack.DefinePlugin({
|
||
|
"process.env.NODE_ENV": JSON.stringify("production")
|
||
|
})
|
||
|
],
|
||
|
recordsOutputPath: path.join(__dirname, "js", "records.json")
|
||
|
};
|