vue.config.js 639 B

1234567891011121314151617181920212223
  1. module.exports = {
  2. publicPath: process.env.NODE_ENV === 'production' ? '/largeScreen2/' : '/',
  3. outputDir: 'dist/largeScreen2',
  4. productionSourceMap: false,
  5. devServer: {
  6. open: false, // 是否自动弹出浏览器页面
  7. host: '0.0.0.0',
  8. port: '8080',
  9. https: false, // 是否使用https协议
  10. hotOnly: false, // 是否开启热更新
  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. }