| 123456789101112131415161718192021222324252627282930 |
- 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':'/'
- }
- },
- }
- },
- })
|