module.exports = { publicPath: process.env.NODE_ENV === "production" ? "/" : "/", productionSourceMap: false, lintOnSave: false, publicPath: '/', devServer: { host: 'localhost', port: 8080, proxy: { "/dev": { target: "http://localhost:8087", changeOrigin: true, pathRewrite: { "/dev": "" } } } }, configureWebpack: { // 把原本需要写在webpack.config.js中的配置代码 写在这里 会自动合并 externals: { 'jquery' : '$', 'echarts': 'echarts', 'axios' : 'axios' } } };