[IMPL] - added support for sass and scss stylesheet languages#4292
[IMPL] - added support for sass and scss stylesheet languages#4292adhami3310 merged 29 commits intoreflex-dev:mainfrom
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
adhami3310
left a comment
There was a problem hiding this comment.
This looks much better now, a few nitpicks and we should be good to go !
Units tests
|
|
well, for the |
| 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.
are you sure this won't break anything?
There was a problem hiding this comment.
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
adhami3310
left a comment
There was a problem hiding this comment.
this looks good to me, i'm tagging @masenf just to confirm the change from .web/public to .web/styles is a fine one.
…-dev#4292) * [IMPL] - added support for sass and scss stylesheet languages - 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 * fix f-string bug * make "libsass" an optional dependency * remove libsass of deps list * revert peotry relock * fix test caused by optional "libsass" deps * improving `_compile_root_stylesheet` function and add folder stylesheets unit test * fix the copy files in assets to public folder * remove useless f-string * little general improvement * fix f-string * remove useless path search * remove unused var & import * [IMPL] - added support for sass and scss stylesheet languages - 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 * fix f-string bug * make "libsass" an optional dependency * remove libsass of deps list * fix test caused by optional "libsass" deps * improving `_compile_root_stylesheet` function and add folder stylesheets unit test * fix the copy files in assets to public folder * remove useless f-string * little general improvement * fix f-string * remove useless path search * remove unused var & import --------- Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>


All Submissions:
Type of change
New Feature Submission:
Changes To Core Features: