charles
2024-04-29 61ee015a91fdf32e271c2c86c7257fb3776d8c69
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    outputDir:"dist",
    publicPath:"./",
    assetsDir:"static",
    devServer:{
        host:"localhost",
        open:true,
        https: false,
        hot:true,
        client:{
            overlay: {
                warnings:false,
                errors:true
            }
        },
        proxy:{
            [process.env.VUE_APP_BASE_API]:{
                target: process.env.VUE_APP_BASE_URL,
                changeOrigin: true,
                pathRewrite: {
                   ['^'+process.env.VUE_APP_BASE_API]: ''
                }
            }
        }
    }
});