-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Remove old sccsphp dependency #32546
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
Conversation
f1de9cb to
8e99013
Compare
|
Pr is merged, now rebase here? |
8e99013 to
ad011b2
Compare
|
I'm now prefixing the custom CSS manually now. |
Not used aymore Signed-off-by: Carl Schwan <[email protected]>
ad011b2 to
e307f8b
Compare
skjnldsv
left a comment
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.
server/apps/theming/lib/Controller/ThemingController.php
Lines 333 to 335 in eb45a6c
| $compiler = new Compiler(); | |
| $compiledCss = $compiler->compileString("body[data-theme-$themeId] { $variables $customCss }"); | |
| $css = $compiledCss->getCss();; |
See this PR this removes the usage of it and do the simple CSS prefixing directly. |
I tested the perf of the scsscacher and it seemed more than ok. |
This is a 15 lines patch that would allow us to remove 19 000 lines of code. I still think it is worth it, even if the performance reasons are really minor. This is less work in the long term for handling the dependency bump (we are currently minor 2 versions in master and 6 in stable22) and limit a bit more the risk of supply chain attacks. I'm actually even surprised that |
With scss it's proper.
This is very different since we're talking about a dependency :) |
Todos