-
Notifications
You must be signed in to change notification settings - Fork 48
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
How can I change .module.less
to .m.less
?
#39
Comments
Hello, sorry I don't know. If you find the answer, it would be great to add some information to the README. Thanks! |
I think this is achievable by using by tweaking the css-loader |
it is not work. |
@JounQin // craco.config.ts
const CracoLessPlugin = require('craco-less');
module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
modifyLessRule(lessRule: any) {
lessRule.exclude = /\.m\.less$/;
return lessRule;
},
modifyLessModuleRule(lessRule: any) {
lessRule.test = /\.m\.less$/;
return lessRule;
},
},
},
],
}; |
As title?
The text was updated successfully, but these errors were encountered: