123456789101112131415161718192021222324252627282930313233343536 |
- let proxy = {
- "/ocean/api": {
- target: "http://192.168.10.30:10060",
- changeOrigin: true
- },
- "/skynet/api": {
- target: "http://192.168.10.39:8030",
- changeOrigin: true
- }
- };
- var webpack = require("webpack");
- module.exports = {
- devServer: {
- proxy
- },
- chainWebpack: config => {
- // iview Loader
- config.module
- .rule("vue")
- .test(/\.vue$/)
- .use("iview-loader")
- .loader("iview-loader")
- .options({
- prefix: true
- })
- .end();
- },
- configureWebpack: {
- plugins: [
- // Ignore all locale files of moment.js
- // TODO: use webpack stats to check if iview locale matters
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment|iview$/)
- ]
- }
- };
|