webpack/examples/dll/webpack.config.js

20 lines
403 B
JavaScript
Raw Normal View History

2015-05-17 00:27:59 +08:00
var path = require("path");
var webpack = require("../../");
2015-05-17 00:27:59 +08:00
module.exports = {
entry: {
2015-10-13 22:19:11 +08:00
alpha: ["./alpha", "./a", "module"],
2015-05-17 00:27:59 +08:00
beta: ["./beta", "./b"]
},
output: {
path: path.join(__dirname, "js"),
filename: "MyDll.[name].js",
library: "[name]_[hash]"
},
plugins: [
new webpack.DllPlugin({
2015-05-17 00:27:59 +08:00
path: path.join(__dirname, "js", "[name]-manifest.json"),
name: "[name]_[hash]"
})
]
};