
module.exports = {
  assetsDir: process.env.VUE_APP_STATIC_URL,
  publicPath: process.env.NODE_ENV === 'production' ? '' : '',
  productionSourceMap: false,
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: []
    }
  },
  outputDir: 'dist',
  devServer: {
    inline: false,
    hot: false,
    liveReload: false,
    // https:true,
    // port:8080,
    // 设置代理proxy
    proxy: {
      '/__api': {
        // target: 'http://192.168.0.26:8585/',
        target: 'https://testxfhd.4dkankan.com',
        // target: 'https://testhuodiao.4dkankan.com/',
        changeOrigin: true,  
        pathRewrite: {      
          ['^/__api']: ''
        }
      }
    }
  }
}