2017-07-27 19:52:38 +08:00
|
|
|
var path = require("path");
|
|
|
|
|
var webpack = require("../../../");
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
2017-12-14 17:09:09 +08:00
|
|
|
// mode: "development || "production",
|
2017-07-27 19:52:38 +08:00
|
|
|
context: __dirname,
|
|
|
|
|
entry: ["example-vendor"],
|
|
|
|
|
output: {
|
|
|
|
|
filename: "vendor.js", // best use [hash] here too
|
|
|
|
|
path: path.resolve(__dirname, "js"),
|
|
|
|
|
library: "vendor_lib_[hash]",
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
new webpack.DllPlugin({
|
|
|
|
|
name: "vendor_lib_[hash]",
|
|
|
|
|
path: path.resolve(__dirname, "js/vendor-manifest.json"),
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
};
|