module.exports = {
  publicPath: './',
  outputDir: 'dist',
  assetsDir: 'static',
  indexPath: 'index.html',

  devServer: {
    open: true,
    host: 'localhost',
    port: '8080',
    https: false,
    hotOnly: false,
    proxy: {
      '/url/': {
        target: 'http://chaoyang.yulongcode.com/api/',
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          '^/url': ''
        }
      }
    }
  },

  // webpack配置
  configureWebpack: {
    performance: {
      hints: 'warning',
      maxEntrypointSize: 500000000,
      maxAssetSize: 300000000,
      assetFilter: function (assetFilename) {
        return assetFilename.endsWith('.js')
      }
    }
  }
}
