mirror of https://github.com/webpack/webpack.git
25 lines
516 B
JavaScript
25 lines
516 B
JavaScript
var path = require("path");
|
|
var webpack = require("../../");
|
|
|
|
module.exports = {
|
|
// mode: "development" || "production",
|
|
entry: {
|
|
dll: ["./example"]
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, "dist"),
|
|
filename: "[name].js",
|
|
library: "[name]_[hash]"
|
|
},
|
|
optimization: {
|
|
concatenateModules: true // this is enabled by default in production mode
|
|
},
|
|
plugins: [
|
|
new webpack.DllPlugin({
|
|
path: path.join(__dirname, "dist", "[name]-manifest.json"),
|
|
name: "[name]_[hash]",
|
|
entryOnly: true
|
|
})
|
|
]
|
|
};
|