first commit
first commit
This commit is contained in:
@@ -1,14 +1,22 @@
|
||||
const {defineConfig} = require('@vue/cli-service')
|
||||
const path = require('path');
|
||||
const webpack = require('webpack')
|
||||
|
||||
module.exports = defineConfig({
|
||||
|
||||
transpileDependencies: ['vuetify'],
|
||||
lintOnSave:false,//关闭语法检查
|
||||
devServer: {
|
||||
// hot: true, // 热更新
|
||||
port: '8060',
|
||||
// port: '8060',
|
||||
port: process.env.NODE_ENV === 'production'
|
||||
? '8060'
|
||||
: '10086',
|
||||
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: 'https://www.aida.com.hk', //后端接口地址
|
||||
// target: 'https://www.aida.com.hk', //后端接口地址
|
||||
target: process.env.VUE_APP_BASE_URL,
|
||||
changeOrigin: true, //是否允许跨越
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user