Skip to content
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

Add support for less module #76

Merged
merged 10 commits into from
Aug 26, 2021
Merged

Add support for less module #76

merged 10 commits into from
Aug 26, 2021

Conversation

fanck0605
Copy link
Contributor

@fanck0605 fanck0605 commented Aug 25, 2021

Now, we can use less and less module at the same time without any additional configuration!

This change takes into account forward compatibility, but it still does not guarantee that all old configurations will work properly in the new version.

We can use the options object to configure less and less modules at the same time.
If we just want to modify some less variables, this will be enough.

If we need to modify less and less module separately, please use modifyLessRule and modifyLessModuleRule.

This works fine in my project, but still needs more testing to make sure there are no potential problems!

ndbroadbent and others added 4 commits August 25, 2021 14:51
(cherry picked from commit 08dd005ddf01c757fec4afa3f4d44e8c79ac6e3f)
Signed-off-by: Chuck Fan <fanck0605@qq.com>
For example, sideEffects: true

Signed-off-by: Chuck Fan <fanck0605@qq.com>
Signed-off-by: Chuck Fan <fanck0605@qq.com>
Signed-off-by: Chuck Fan <fanck0605@qq.com>
Now, like other style sheets, we don't need to add exclusions in file loader

Signed-off-by: Chuck Fan <fanck0605@qq.com>
Copy link
Collaborator

@tux-tn tux-tn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @fanck0605 for working on this issue. I will try to test your PR with different options, can you please address my comment concerning clone

lib/craco-less.js Outdated Show resolved Hide resolved
@ndbroadbent
Copy link
Member

Thank you @fanck0605! I really appreciate the update to the documentation in README, and also the great test cases. Also thanks @tux-tn for the review! I will leave a comment on that review as well

Signed-off-by: Chuck Fan <fanck0605@qq.com>
Signed-off-by: Chuck Fan <fanck0605@qq.com>
Signed-off-by: Chuck Fan <fanck0605@qq.com>
@fanck0605 fanck0605 requested a review from tux-tn August 26, 2021 07:19
Signed-off-by: Chuck Fan <fanck0605@qq.com>
Copy link
Collaborator

@tux-tn tux-tn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉
Thank you @fanck0605 for the great work!

@ndbroadbent ndbroadbent merged commit 03312c1 into DocSpring:master Aug 26, 2021
@ndbroadbent
Copy link
Member

Thanks @fanck0605! This is now merged and released in version 1.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants