最近在搭一个移动端的框架,用的是nuxt+vant,其中用到了postcss-pxtorem这个插件来转换单位,相关配置如下:
控制台老是提示 You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.
大概意思好像是PostCSS没有起作用,要单独在postcss.config.js中添加配置,但是加了postcss.config.js之后nuxt又提示不推荐单独写postcss.config.js配置文件,而且这个依然没起作用,想问下路过的大神这个咋回事,非常感谢!
困扰了我两天,最后通过换版本号解决,附上最终版本:
