Files
ClassContent/历届学生/罗朝/项目练习/电商App/font-shop/webpack.dll.config.js
2024-09-27 02:06:13 +08:00

29 lines
484 B
JavaScript
Executable File

var path = require("path"),
fs = require('fs'),
webpack = require("webpack");
var vendors = [
'vue',
'vue-router',
'vuex',
'vue-ydui'
];
module.exports = {
entry: {
vendor: vendors
},
output: {
path: path.join(__dirname, "dist"),
filename: "Dll.js",
library: "[name]_[hash]"
},
plugins: [
new webpack.DllPlugin({
path: path.join(__dirname, "dist", "manifest.json"),
name: "[name]_[hash]",
context: __dirname
})
]
};