vue.config.js 539 Bytes
Newer Older
1 2
const name = "西田森App";

leiqingsong's avatar
leiqingsong committed
3
module.exports = {
leiqingsong's avatar
leiqingsong committed
4
  publicPath: "/front",
5 6 7 8 9 10 11 12
  devServer: {
    proxy: {
      '/shop-mall': {
        target: "http://8.131.244.76:81/",
        changeOrigin: true
      }
    }
  },
leiqingsong's avatar
leiqingsong committed
13 14 15 16 17 18 19
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          require("autoprefixer"),
          require("postcss-pxtorem")({
            rootValue: 37.5, // 换算基数,设计稿整宽=750 => 75
20
            propList: ["*"]
leiqingsong's avatar
leiqingsong committed
21 22 23 24
          })
        ]
      }
    }
25 26 27
  },
  configureWebpack: {
    name: name
leiqingsong's avatar
leiqingsong committed
28
  }
29
};