vue.config.js 752 B

123456789101112131415161718192021222324
  1. const Timestamp = new Date().getTime();
  2. module.exports = {
  3. lintOnSave: false,
  4. devServer: {
  5. port: 8184, // 端口
  6. proxy: {
  7. '/api': {
  8. target: 'http://192.168.0.3:19095/',
  9. changeOrigin: true,
  10. pathRewrite: {
  11. '^/api': '',
  12. }
  13. }
  14. }
  15. },
  16. configureWebpack: {
  17. output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
  18. filename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`,
  19. chunkFilename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`
  20. }
  21. },
  22. // 输出文件目录
  23. outputDir: 'D:/wwwroot/flyLongApp/build',
  24. }