1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| /*
| * @Date: 2019-11-21 14:21:14
| * @LastEditors: Sneed
| * @LastEditTime: 2024-01-07 16:16:12
| * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/.postcssrc.js
| */
| // 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-pxtorem': {
| rootValue: 19, // 表示根元素字体大小或根据input参数返回根元素字体大小
| propList: ['*'], // 可以从px更改为rem的属性, 通配符*表示启用所有属性
| selectorBlackList: ['.norem'], // 过滤掉.norem开头的class,不进行rem转换
| exclude: ['node_modules']
| }
| }
| }
|
|