module.exports = {
  outputDir: 'dist/build/h5',
  assetsDir: 'static',
  publicPath: './',
  productionSourceMap: false,
  css: {
    extract: true
  },
  devServer: {
    host: '0.0.0.0',
    port: 8084,
    disableHostCheck: true,
    proxy: {
      '/api': {
        target: 'http://localhost:8123',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  transpileDependencies: [],
  chainWebpack: config => {
    if (process.env.NODE_ENV === 'production') {
      config.performance.hints(false)
    }
  }
}
