Skip to content
Advertisement

Multiple stylesheet does not working with Webpack 5.11.0

Swiper bundler CSS has a base64 font-face, When I was trying to load it into my index.ts (main entry) file it gives me the following error. I was tried a lot of loaders (url-loader, base64-font-loader, etc) for this but none of these were worked for me. How can I fix this problem? Which loader should I use to fix this problem?

index.ts

JavaScript

error:

JavaScript

webpack.config.js:

JavaScript

Advertisement

Answer

This is not allowed to have multiple stylesheets into one javascript file. Maybe possible but not with this configuration.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement