-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[IMPL] - added support for sass and scss stylesheet languages #4292
base: main
Are you sure you want to change the base?
[IMPL] - added support for sass and scss stylesheet languages #4292
Conversation
- better checking of stylesheets to be compiled - added support for sass and scss stylesheet languages - the stylesheets files are now copied to ".web/styles/" at compile time - relock poetry file for libsass deps - stylesheet compiler unit tests also check the contents of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much better now, a few nitpicks and we should be good to go !
Units tests
|
well, for the |
@@ -165,7 +239,7 @@ def test_compile_stylesheets_exclude_tailwind(tmp_path, mocker): | |||
|
|||
assert compiler.compile_root_stylesheet(stylesheets) == ( | |||
str(Path(".web") / "styles" / "styles.css"), | |||
"@import url('../public/styles.css'); \n", | |||
"@import url('./styles.css'); \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure this won't break anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know where this could cause a problem, since all the supported stylesheet files in the app/assets
directories and subdirectories are copied or compiled and saved in the .web/styles
directory and no longer in the .web/public
directories.
and also, I checked the second batch of the tests/integration
group and the tests/integration/test_tailwind.py
(which is the only one to have tests impacted by the changes) passed the tests without any errors, which is why I don't understand the error in the first batch of the tests/integration
group.
- better checking of stylesheets to be compiled - added support for sass and scss stylesheet languages - the stylesheets files are now copied to ".web/styles/" at compile time - relock poetry file for libsass deps - stylesheet compiler unit tests also check the contents of the file
…/KronosDev-Pro/reflex into add-sass-scss-stylesheet-support
All Submissions:
Type of change
New Feature Submission:
Changes To Core Features: