vue.config.js 784 B

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