const path = require("path"), fs = require('fs'), webpack = require("webpack"); const vendors = ['react', 'echarts', 'react-dom', 'mobx', 'mobx-react', 'react-router', 'react-router-dom', 'moment', 'lodash', 'axios']; 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 }) ] };