Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Add a note for url(...) with css-modules in webpack. #199

Description

@boopathi

When you use cssnext with webpack's css-loader in module mode, url(./file) is transformed to url(file). This is done by postcss-url included in cssnext. Because of this issue, if you use url(./image.png), the css-loader?module gets it as url(image.png) and treats it as a module and searches in moduleDirectories rather than the relative path.

So, with css-loader module mode, I guess it is correct to use { url: false } option in cssnext which is propagated to postcss-url. So can we add a note about this in this repo?

Related issues and discussions:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions