const Timestamp = new Date().getTime();
module.exports = {
    lintOnSave: false,
    devServer: {
        port: 8084, // 端口
        proxy: {
            '/api': {
                target: 'http://192.168.0.3:19095/',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '',
                }
            },
            '/bpi': {
                target: 'http://192.168.0.3:19096/',
                changeOrigin: true,
                pathRewrite: {
                    '^/bpi': '',
                }
            },
            '/cpi': {
                target: 'http://192.168.0.62:9010/',
                changeOrigin: true,
                pathRewrite: {
                    '^/cpi': '',
                }
            }
        }
    },
    configureWebpack: {
        output: { // 输出重构  打包编译后的 文件名称  【模块名称.版本号.时间戳】
            filename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`,
            chunkFilename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`
        }
    },
    // 输出文件目录
    // outputDir: 'D:/wwwroot/flyLongStaticPc/build',//windows输出目录
    outputDir: '/Users/macbook/Working/vueBuild/flyLong/GoAllOutTv',//mac输出目录
    productionSourceMap: false,//关闭map文件，减少打包后体积
};
