mirror of https://github.com/webpack/webpack.git
27 lines
543 B
JavaScript
27 lines
543 B
JavaScript
"use strict";
|
|
|
|
const path = require("path");
|
|
const webpack = require("../../");
|
|
|
|
module.exports = {
|
|
// mode: "development" || "production",
|
|
entry: {
|
|
dll: ["./example"]
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, "dist"),
|
|
filename: "[name].js",
|
|
library: "[name]_[fullhash]"
|
|
},
|
|
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]_[fullhash]",
|
|
entryOnly: true
|
|
})
|
|
]
|
|
};
|