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
What is the expected behavior? I want to use webpack css module to handle less-loader result
{ module: { rules: [{ test: /\.less$/, use: ['less-loader'], type: 'css/auto' }] } }
without css/auto we need to configure two rules
{ module: { rules: [{ test: /\.module.less$/, use: ['less-loader'], type: 'css/module' },{ test: /(?<!module).less$/, use: ['less-loader'], type: 'css/global' }] } }
What is motivation or use case for adding/changing the behavior? simplify the interop of experimental.css with less | sass How should this be implemented in your opinion? add a separate css/auto to automatic handle css file like css-loader https://github.com/webpack-contrib/css-loader/blob/ef749f29f8696b93f9eea61e6d00f2bb30ce094c/src/utils.js#L543 Are you willing to work on this yourself? yes
css/auto
The text was updated successfully, but these errors were encountered:
Make sense, feel free to send a PR, it should be easy
Sorry, something went wrong.
builtins.css.modules
auto
Successfully merging a pull request may close this issue.
Feature request
What is the expected behavior?
I want to use webpack css module to handle less-loader result
without css/auto we need to configure two rules
What is motivation or use case for adding/changing the behavior?
simplify the interop of experimental.css with less | sass
How should this be implemented in your opinion?
add a separate
css/auto
to automatic handle css file like css-loader https://github.com/webpack-contrib/css-loader/blob/ef749f29f8696b93f9eea61e6d00f2bb30ce094c/src/utils.js#L543Are you willing to work on this yourself?
yes
The text was updated successfully, but these errors were encountered: