zhgdyun/postcss.config.js

18 lines
604 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// module.exports = {
// plugins: {
// autoprefixer: {},
// "postcss-pxtorem": {
// rootValue: 192, // 根据设计图尺寸写设计图是1920就写192
// propList: ['*'], // 需要被转换的属性
// // selectorBlackList: ['el'] // 不进行px转换的选择器不转换element的标签样式根据自己项目需求来定义
// }
// }
// }
module.exports = {
plugins: [
require("postcss-px2rem-exclude")({
remUnit: 16, // 配置1rem = 16px
exclude: /node_modules/
}),
]
}