undefinedfix
Sign in

You need to specify 'CSS loader' instead of 'CSS'

yqmao edited in Tue, 06 Sep 2022

BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.

You need to specify ' css - loader ' instead of ' css ',

2 Replies
Fastful
commented on Wed, 07 Sep 2022

CSS is not a module that can be recognized by webpack. You need to use CSS loader to convert CSS into a module that can be recognized by webpack. Configure the loader correctly in the module of webpack

Iter
commented on Wed, 07 Sep 2022

Configure CSS loader

lock This question has been locked and the reply function has been disabled.