vue.config.js 598 Bytes
Newer Older
leiqingsong's avatar
leiqingsong committed
1 2
// const path = require("path");

3 4
const name = "西田森App";

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