let proxy = { "/api": { target: "http://192.168.10.26:6001/", // target: "http://192.168.10.36:6001/", // target: "http://192.168.10.86:6001/", changeOrigin: true, }, "/file": { target: "http://192.168.10.26:6001/", // target: "http://192.168.10.36:6001/", // target: "http://192.168.10.86:6001/", changeOrigin: true, }, }; var webpack = require("webpack"); module.exports = { lintOnSave: process.env.NODE_ENV !== "production" ? true : "error", devServer: { proxy, }, configureWebpack: { devtool: "source-map", plugins: [ // Ignore all locale files of moment.js // TODO: use webpack stats to check if iview locale matters new webpack.IgnorePlugin(/^\.\/locale$/, /moment|iview$/), ], }, transpileDependencies: [/\bvue-awesome\b/], };