.postcssrc.js 561 B

1234567891011121314151617
  1. // https://github.com/michael-ciniawsky/postcss-load-config
  2. module.exports = {
  3. "plugins": {
  4. "postcss-import": {},
  5. "postcss-url": {},
  6. // to edit target browsers: use "browserslist" field in package.json
  7. "autoprefixer": {},
  8. 'postcss-pxtorem': {
  9. rootValue: 24,
  10. propList: ['font-size'] // 只转化font-size
  11. // propList: ['*'], // 转化全部
  12. // propList: ['*','!border'], //转化全部,除了border属性
  13. // selectorBlackList: ['body'] // 过滤掉.am-开头的class,不进行rem转换
  14. }
  15. }
  16. }