12345678910111213141516171819202122232425 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- // 添加此行代码
- lintOnSave: false,
- assetsDir: 'static',
- publicPath: "/",
- outputDir: 'dist',
- productionSourceMap: false,
- devServer: {
- host: '0.0.0.0',
- port: 8001,
- proxy: {
- [process.env.VUE_APP_BASE_API]: {
- // target: 'http://192.168.1.21:8080',//本地代码
- target: 'http://1.82.219.241:8080', // 测试
- // target: 'http://1.82.219.240:8080', // 生产
- changeOrigin: true,
- pathRewrite: {
- ['^' + process.env.VUE_APP_BASE_API]: ''
- }
- },
- },
- },
- })
|