const {defineConfig} = require('@vue/cli-service')


module.exports = defineConfig({
    publicPath: '/',
    outputDir: 'web_dist',
    assetsDir: 'static',
    transpileDependencies: true,
    lintOnSave: process.env.NODE_ENV === 'development',
    productionSourceMap: false,
    devServer: {
        open: true,
        //proxy: 'http://localhost:8848'
        //proxy: 'http://10.20.100.200:11324'
        proxy: {
            [process.env.VUE_APP_BASE_API]: {
                //target:'http://10.20.100.200:11324',
                target: 'http://localhost:8848',
                //crossOrigin:true,
                changeOrigin: true,
                pathRewrite: {
                    ['^' + process.env.VUE_APP_BASE_API]: ''
                },
            }
        }
    }
})
