vue-cli2.0 中postcss-px2rem配置
1.安装npm install postcss-px2rem -S2.webpack.base.conf.js配置remUnit: 100意思为1rem=100pxplugins:[new webpack.LoaderOptionsPlugin({vue: {postcss: [require('postcss-px2rem')({'rem...
·
1.安装
npm install postcss-px2rem -S
2.webpack.base.conf.js配置
remUnit: 100意思为1rem=100px
plugins:[
new webpack.LoaderOptionsPlugin({
vue: {
postcss: [require('postcss-px2rem')({'remUnit': 100,'baseDpr':2})]
},
})
]
更多推荐
已为社区贡献51条内容
所有评论(0)