webpack/examples/multiple-entry-points/webpack.config.js

12 lines
216 B
JavaScript
Raw Normal View History

2013-11-20 01:09:26 +08:00
var path = require("path");
module.exports = {
entry: {
pageA: "./pageA",
pageB: "./pageB"
},
output: {
path: path.join(__dirname, "js"),
filename: "[name].bundle.js",
chunkFilename: "[id].chunk.js"
}
}