webpack/examples/dll-user/webpack.config.js

17 lines
428 B
JavaScript
Raw Normal View History

2015-05-17 17:06:35 +08:00
var path = require("path");
var webpack = require("../../");
2015-05-17 17:06:35 +08:00
module.exports = {
2023-03-12 10:27:40 +08:00
// mode: "development" || "production",
2015-05-17 17:06:35 +08:00
plugins: [
new webpack.DllReferencePlugin({
2015-05-17 17:06:35 +08:00
context: path.join(__dirname, "..", "dll"),
2024-01-13 21:28:53 +08:00
manifest: require("../dll/dist/alpha-manifest.json")
2015-05-17 17:06:35 +08:00
}),
new webpack.DllReferencePlugin({
2015-05-17 17:06:35 +08:00
scope: "beta",
2024-01-13 21:28:53 +08:00
manifest: require("../dll/dist/beta-manifest.json"),
2016-09-07 20:57:53 +08:00
extensions: [".js", ".jsx"]
2015-05-17 17:06:35 +08:00
})
2015-05-18 05:03:21 +08:00
]
2015-05-17 17:06:35 +08:00
};