123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- let proxy = {
- "/api": {
- target: "https://192.168.10.39:8878",
- changeOrigin: true
- }
- };
- var webpack = require("webpack");
- module.exports = {
- lintOnSave: process.env.NODE_ENV !== "production" ? true : "error",
- devServer: {
- proxy
- },
- chainWebpack: config => {
-
- config.module
- .rule("vue")
- .test(/\.vue$/)
- .use("iview-loader")
- .loader("iview-loader")
- .options({
- prefix: true
- })
- .end();
- },
- configureWebpack: {
- devtool: "source-map",
- plugins: [new webpack.IgnorePlugin(/^\.\/locale$/, /moment|iview$/)]
- }
- };
|