소스 검색

config.js 文件提交

jingyuanchao 1 년 전
부모
커밋
e0b9c2bca2
1개의 변경된 파일30개의 추가작업 그리고 0개의 파일을 삭제
  1. 30 0
      vue.config.js

+ 30 - 0
vue.config.js

@@ -0,0 +1,30 @@
+
+const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
+const { defineConfig } = require('@vue/cli-service')
+const { sassTrue } = require('sass')
+module.exports = defineConfig({
+  configureWebpack: {
+    plugins: [new NodePolyfillPlugin()],
+  },
+  devServer: {
+    port: 8081, // 端口
+    open: false, // 启动后打开浏览器
+    client: {
+      overlay: false
+    },
+    /*本地开发请求代理*/
+    proxy: {      
+      '/dev-api': {
+        //  target: "http://47.92.229.224:8080",
+        // target: "http://10.87.21.103:8080",
+        // target: "http://10.87.21.107:8080",
+        target: "http://10.87.23.51:8080",
+        // ws:true,
+        changOrigin:true,
+        pathRewrite:{
+          '^/dev-api':'/'
+        }
+      },
+    }
+  },
+})