Skip to content

docs: incompatible extract-loader is suggested #1363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 4 tasks
4eb0da opened this issue Aug 26, 2021 · 1 comment · Fixed by #1374
Closed
1 of 4 tasks

docs: incompatible extract-loader is suggested #1363

4eb0da opened this issue Aug 26, 2021 · 1 comment · Fixed by #1374

Comments

@4eb0da
Copy link

4eb0da commented Aug 26, 2021

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

https://github.com/webpack-contrib/css-loader#tostring

If, for one reason or another, you need to extract CSS as a plain string resource ...

extract-loader doesn't work with current version of css-loader, if css contains url(..)
This happens because css-loader produces new URL(...., import.meta.url), which cannot be parsed by outdated babel-core from extract-loader

Also, looks like extract-loader is deprecated with webpack v5 and should not be used

Your Proposal for Changes

Add a reminder about extract-loader current state or completely remove it from docs

@alexander-akait
Copy link
Member

You can use workaround - esModule: false, if you need extrac-loader, but I recommend to migrate on mini-css-extract-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants