.postcssrc.js 548B

12345678910111213141516171819202122
  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. // 此处为添加部分
  10. rootValue: 16, // 对应16px 适配移动端750px宽度
  11. unitPrecision: 5,
  12. propList: ["*"],
  13. selectorBlackList: [".el",".mint"],
  14. replace: true,
  15. mediaQuery: false,
  16. minPixelValue: 0,
  17. exclude: /src/
  18. }
  19. }
  20. };