zhangxiaoxu123456
2022-04-25 82997f69728d163157a80360689874bddf16b26f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// https://github.com/michael-ciniawsky/postcss-load-config
 
module.exports = {
  "plugins": {
    "postcss-import": {},
    "postcss-url": {},
    // to edit target browsers: use "browserslist" field in package.json
    "autoprefixer": {},
    "postcss-px2rem-exclude": {  // 添加的代码
      remUnit: 256,
      exclude: /node_modules|element/i // 忽略node_modules目录下的文件
    }
 
  }
}