| | |
| | | /*
|
| | | * @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 = {
|
| | |
| | | "postcss-import": {},
|
| | | "postcss-url": {},
|
| | | // to edit target browsers: use "browserslist" field in package.json
|
| | | "autoprefixer": {}
|
| | | "autoprefixer": {},
|
| | | 'postcss-pxtorem': {
|
| | | rootValue: 19, // 表示根元素字体大小或根据input参数返回根元素字体大小
|
| | | propList: ['*'], // 可以从px更改为rem的属性, 通配符*表示启用所有属性
|
| | | selectorBlackList: ['.norem'], // 过滤掉.norem开头的class,不进行rem转换
|
| | | exclude: ['node_modules']
|
| | | }
|
| | | }
|
| | | }
|