vue.config.js 622 B

1234567891011121314151617181920212223
  1. const axios_default_ip = "http://fyy_api.qingyaokeji.com";
  2. process.env.VUE_APP_BASE_URL = axios_default_ip;
  3. module.exports = {
  4. publicPath: './',
  5. outputDir: 'dist',
  6. assetsDir: 'static',
  7. indexPath: 'index.html',
  8. productionSourceMap: process.env.NODE_ENV === 'development',
  9. devServer: {
  10. // https: true,
  11. proxy: {
  12. "/postek/print": {
  13. target: "http://192.168.1.110:888",
  14. ws: true, // proxy websockets
  15. changeOrigin: true,
  16. // pathRewrite: {
  17. // '^/postek': '', // rewrite path
  18. // },
  19. }
  20. }
  21. },
  22. lintOnSave: false // 禁用eslint 便于开发
  23. }