webpack/examples/multi-compiler/webpack.config.js

28 lines
473 B
JavaScript
Raw Normal View History

2014-06-12 04:52:18 +08:00
var path = require("path");
var webpack = require("../../");
module.exports = [
{
entry: "./example",
output: {
path: path.join(__dirname, "js"),
filename: "mobile.js"
},
plugins: [
new webpack.DefinePlugin({
ENV: JSON.stringify("mobile")
})
]
},
{
entry: "./example",
output: {
path: path.join(__dirname, "js"),
filename: "desktop.js"
},
plugins: [
new webpack.DefinePlugin({
ENV: JSON.stringify("desktop")
})
]
}
];