const Timestamp = new Date().getTime(); module.exports = { lintOnSave: false, devServer: { port: 8184, // 端口 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': '', } } } }, configureWebpack: { output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】 filename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`, chunkFilename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js` } }, // 输出文件目录 // outputDir: 'D:/wwwroot/webApp/build',//windows输出目录 outputDir: '/Users/macbook/Working/vueBuild/flyLong/WeChatApp',//mac输出目录 }