29 lines
484 B
JavaScript
Executable File
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
|
|
})
|
|
]
|
|
};
|