sunniejs / vue-h5-template

:tada:vue搭建移动端开发,基于vue-cli4.0+webpack 4+vant ui + sass+ rem适配方案+axios封装,构建手机端模板脚手架
https://sunniejs.github.io/vue-h5-template/
MIT License
3.18k stars 883 forks source link

.postcssrc.js调为75会导致vant的组件ui也会被更改,全部变1/2,应该需要忽略组件的css #8

Closed JeasonLaung closed 4 years ago

JeasonLaung commented 4 years ago

module.exports = { plugins: { autoprefixer: { overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'] }, 'postcss-pxtorem': { rootValue: 37.5, propList: ['*'], //selectorBlackList: ['van-'] } } } image

module.exports = { plugins: { autoprefixer: { overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'] }, 'postcss-pxtorem': { rootValue: 75, propList: ['*'], //selectorBlackList: ['van-'] } } } image

SuperZiLu commented 3 years ago

老哥我也遇到设计稿不是37.5的问题了 你是怎么解决的?