const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  runtimeCompiler: true,
  configureWebpack: {
    resolve: {
      alias: {
        'balm-ui-plus': 'balm-ui/dist/balm-ui-plus.js',
        'balm-ui-css': 'balm-ui/dist/balm-ui.css'
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: {
          '/api': ''
        }
      },
      // '/socket.io': {
      //   target: 'http://localhost:8080', // target host
      //   changeOrigin: true, // needed for virtual hosted sites
      //   logLevel: 'debug'
      // },
      // '/sockjs-node': {
      //   target: 'http://localhost:8080',
      //   ws: false,
      //   changeOrigin: true
      // }

    }
  }
})
