// const path = require("path");

const name = "西田森App";

module.exports = {
  publicPath: "/front",
  outputDir: "front",
  devServer: {
    proxy: {
      '/shop-mall': {
        target: "http://8.131.244.76:81/",
        changeOrigin: true
      }
    }
  },
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          require("autoprefixer"),
          require("postcss-pxtorem")({
            rootValue: 37.5, // 换算基数，设计稿整宽=750 => 75
            propList: ["*"]
          })
        ]
      }
    }
  },
  configureWebpack: {
    name: name
  }
};
