因項目需要,用戶突然要堅持小屏幕也要觀看大屏代碼,臨時解決方案是加了一個postcss-px-to-viewport ,安裝過程中報錯Error: true is not a PostCSS plugin
首先聲明我的vue-cli中package-lock.json寫的webpack版本是4.28.4
解決辦法
方案1.其下面代碼添加到package.json里即可
"peerDependencies": {
"postcss": "^8.0.0"
},
"peerDependencies": {
"postcss": "^8.0.0"
},
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。