Skip to content

css-loader integration #148

Closed
Closed

Description

@zslabs

Hi there! Have what's hopefully a quick question. Is postcss-modules meant to take the place of css-loader in a Webpack loader array? Currently, it looks like I'm getting double hashes callout__29s3F becomes callout__29s3F__f32d and the .json import I'm doing in my components isn't finding the write class; nor is it writing to the stylesheet as I would have assumed. I'd like to get the benefits of the .json file written to disk; but maintain the other functionality css-loader provides with its asset resolution. Thanks!

Edit

It looks like something similar was asked in https://stackoverflow.com/questions/35007509/are-where-any-examples-available-on-how-to-use-postcss-modules-instead-of-css-mo

Activity

  1. madyankin commented on Jun 30, 2026

    @madyankin
    Owner

    Closing as a usage question — postcss-modules is meant to run as a PostCSS plugin in your pipeline, not alongside css-loader's own modules mode. Pick one or the other. Reopen with a concrete bug.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions