1、npm i amfe-flexible 2、import 'amfe-flexible'
然后再,安裝postcss-px2rem插件
npm i postcss-px2rem
在package.json中配置
"postcss": { "plugins": { "autoprefixer": {}, "postcss-px2rem": { "remUnit": 26.7 } } }
1、npm i amfe-flexible 2、import 'amfe-flexible'
然后再,安裝postcss-px2rem插件
npm i postcss-px2rem
在package.json中配置
"postcss": { "plugins": { "autoprefixer": {}, "postcss-px2rem": { "remUnit": 26.7 } } }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。