webpack 根据官网安装报错

ERROR in ./src/style.css 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

 把 import './style.css';改成下面这个就发现打包成功了。
 
import 'style-loader!css-loader!./style.css';

  

 

webpack引入css报错问题

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-10-14
  • 2021-11-28
  • 2021-09-02
  • 2021-06-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-07-22
  • 2021-04-07
  • 2021-06-04
  • 2021-05-04
相关资源
相似解决方案