1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
| // https://github.com/michael-ciniawsky/postcss-load-config
| const path = require('path');
| module.exports = {
| 'plugins': {
| // to edit target browsers: use "browserslist" field in package.json
| 'autoprefixer': {},
| 'postcss-pxtorem': {
| rootValue: 192, // 根据设计图尺寸写,设计图是1920,就写192
| propList: ['*'] // 需要被转换的属性
| // selectorBlackList: ['el'] // 不进行px转换的选择器,不转换element的标签样式,根据自己项目需求来定义
| }
| }
| }
|
|