Skip to content
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

css-loader v7 support #277

Open
barzilaysapir opened this issue Nov 13, 2024 · 1 comment
Open

css-loader v7 support #277

barzilaysapir opened this issue Nov 13, 2024 · 1 comment

Comments

@barzilaysapir
Copy link

Some features are not working with the new css-loader@7 import syntax:
import * as style from "./style.css";
https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0

I'm aware of the option to restore v6 behavior, but supporting this as well will be great!

@Ch-Valentine
Copy link

I was trying to find updated to a new style-loader API and didn't found, and then created own loader, feel free to use, I hope it will help to you as well

https://www.npmjs.com/package/css-modules-dts-loader,

{
    loader: require.resolve("css-modules-dts-loader"),
    options: {
        camelCase: true,
        quote: "double",
        indentStyle: "space",
        indentSize: 4,
        sort: true,
        mode: isProduction ? "verify" : "emit"
    }
}

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

No branches or pull requests

2 participants