<!-- Please don't delete this template or we'll close your issue --> ## Feature request <!-- Issues that contain questions or support requests will be closed. --> <!-- Before creating an issue please make sure you are using the latest version of webpack. --> <!-- Check if this feature needs to be implemented in a plugin or loader instead --> <!-- If yes: file the issue on the plugin/loader repo --> <!-- Features related to the development server should be filed on this repo instead --> **What is the expected behavior?** I want to use webpack css module to handle less-loader result ```ts { module: { rules: [{ test: /\.less$/, use: ['less-loader'], type: 'css/auto' }] } } ``` without css/auto we need to configure two rules ```ts { 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
Activity
alexander-akait commentedon Dec 15, 2022
Make sense, feel free to send a PR, it should be easy