-
Notifications
You must be signed in to change notification settings - Fork 268
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
cannot use module.less in newest create-react-app #226
Comments
me too |
不要在代码中使用 xxx.module.less,使用xxx.less然后引用,或者是参考上面的把custom_cra那一块给改掉就可以了。 |
It seems to be fixed until V1.0, related issue is #201, and the solution is to downgrade your |
Just tried |
For those who don't want to upgrade to adjustStyleLoaders(({ test, exclude, use: [, css] }) => {
const file = 'index.module.less';
if (test.test(file) && (!exclude || !exclude.test(file))) {
css.options.modules = {
localIdentName: css.options.modules.localIdentName,
};
css.options.localsConvention = 'camelCase';
delete css.options.localIdentName;
}
}) |
if use [component].module.less, will be cause error as follow
this is a break changes in css-loader. css-loader#2197
default config like this
The text was updated successfully, but these errors were encountered: