module.exports = {
  outputDir: 'fns_backend' + process.env.VUE_APP_MODE,

  css: {
    loaderOptions: {
      less: {
        modifyVars: {
          'primary-color': '#3E4FAF',
          //   'link-color': '#1DA57A',
          //   'border-radius-base': '2px',
        },
        javascriptEnabled: true, // 加载LESS 需要把JS设置一下
      },
      sass: {
        // @/ is an alias to src/
        // so this assumes you have a file named `src/variables.scss`
        prependData: `@import "@/assets/sass/main.scss";`
      }
    }
  },
  devServer: {
    proxy: {
      "/proxyApi": {
        target: 'http://172.16.102.150:8091',
        pathRewrite: {
          '^/proxyApi': '',
        },
      }
    },
  },
  chainWebpack: (config) => {
    config
      .plugin('html')
      .tap((args) => {
        args[0].title = '中小企业协会综合服务平台';
        return args;
      });
  },
  // configureWebpack:{
  //   externals: {
  //     'AMap': 'window.AMap'
  //   },
  // },
}