Skip to content

docs: incompatible extract-loader is suggested #1363

Closed
@4eb0da

Description

@4eb0da

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions