Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
postcss.config.js 544 Bytes
Copy Edit Raw Blame History
msdog authored 2022-09-17 22:27 . init
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
plugins: {
// "postcss-import": {},
// "postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
autoprefixer: {},
'postcss-pxtorem': { // yarn add postcss-pxtorem -D "postcss-pxtorem": "^5.1.1",
rootValue: 100, // 结果为:设计稿元素尺寸750/,比如元素宽32px,最终页面会换算成 2rem 大写Px/PX 不转换浏览器能识别
minPixelValue: 2,
propList: ['*'],
},
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化