vue.config.js 722 B

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