We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to import CSS from node_modules the loader renames all the class names
I found one workaround here This is what I'm using:
const loadCSS = isServerConfig => ({ module: { rules: [ { test: /\.css$/, oneOf: [{ resourceQuery: /^\?raw$/, use: [ ...(isServerConfig ? [] : [ExtractCSSChunks.loader]), { loader: require.resolve('css-loader'), options: { onlyLocals: isServerConfig, }, }, ] }, { use: [ ...(isServerConfig ? [] : [ExtractCSSChunks.loader]), { loader: require.resolve('css-loader'), options: { modules: { localIdentName: '[name]__[local]--[hash:base64:5]', }, onlyLocals: isServerConfig, }, }, ], }] }, ], }, });
Is there a better way to do it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I try to import CSS from node_modules the loader renames all the class names
I found one workaround here
This is what I'm using:
Is there a better way to do it?
The text was updated successfully, but these errors were encountered: