在做webpack配置css兼容的时候出现了postcss-loader插件不兼容问题
配置代码如下:webpack:Invalid options object. PostCSS Loader has been initialized using an options object that doe
出现的错误
webpack:Invalid options object. PostCSS Loader has been initialized using an options object that doe

原因是postcss-loader这个版本不支持在webpack。config。js文件中这么写
解决办法:
在项目根目录下新建一个postcss.config.js文件
配置如下:
webpack:Invalid options object. PostCSS Loader has been initialized using an options object that doe
webpack。config.js文件配置如下
webpack:Invalid options object. PostCSS Loader has been initialized using an options object that doe
这样子就解决了版本不兼容的问题

相关文章:

  • 2022-12-23
  • 2021-04-13
  • 2021-12-22
  • 2021-10-14
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-09-21
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案