vue.config.js 935 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. publicPath: process.env.NODE_ENV === 'production' ? '/specimenView/' : '/specimenView/',
  3. outputDir: 'dist/specimenView',
  4. productionSourceMap: false,
  5. devServer: {
  6. open: false, // 是否自动弹出浏览器页面
  7. host: '0.0.0.0',
  8. port: '8888',
  9. https: false, // 是否使用https协议
  10. hotOnly: true, // 是否开启热更新
  11. // proxy: {
  12. // '/service': {
  13. // target: 'http://192.168.3.108', // API服务器的地址
  14. // ws: true, // 代理websockets
  15. // changeOrigin: true, // 虚拟的站点需要更管origin
  16. // pathRewrite: {
  17. // '^/service': ''
  18. // }
  19. // }
  20. // }
  21. },
  22. css: {
  23. // extract: false,
  24. // sourceMap: true, // 开启 CSS source maps?
  25. loaderOptions: {
  26. less: {
  27. modifyVars: {
  28. 'primary-color': '#49b856',
  29. },
  30. javascriptEnabled: true,
  31. },
  32. },
  33. }
  34. }