mirror of https://github.com/webpack/webpack.git
20 lines
387 B
JavaScript
20 lines
387 B
JavaScript
var path = require("path");
|
|
var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
|
|
module.exports = {
|
|
entry: {
|
|
pageA: "./pageA",
|
|
pageB: "./pageB"
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, "js"),
|
|
filename: "[name].bundle.js",
|
|
chunkFilename: "[id].chunk.js"
|
|
},
|
|
plugins: [
|
|
new CommonsChunkPlugin({
|
|
filename: "commons.js",
|
|
name: "commons"
|
|
})
|
|
]
|
|
};
|