123456789101112131415161718192021222324 |
- let proxy = {
- "/api": {
- target: "http://192.168.10.36:6001/",
- // target: "http://192.168.11.224:6001/backend",
- 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/],
- };
|