charles
2024-04-29 61ee015a91fdf32e271c2c86c7257fb3776d8c69
vue.config.js
@@ -1,4 +1,28 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})
    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]: ''
                }
            }
        }
    }
});