-
Notifications
You must be signed in to change notification settings - Fork 57
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
IBX-1886: Dart Sass compatibility added #2027
Conversation
@@ -0,0 +1,3 @@ | |||
@function div($number1, $number2) { |
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 think it would be better to create a folder polyfill
for this function here in admin-ui and import it in all needed bundles. Is it possible or there are some limitations in dart?
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.
Richtext and ezcommerce-shop bundles, now are importing div function from admin-ui @import './public/bundles/ezplatformadminui/scss/polyfill/div';
SonarCloud Quality Gate failed. 1 Bug No Coverage information |
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.
QA approved on IbexaDXP 3.3.x-dev.
The changes introduced in several bundles will allow you to use dart sass as well as the current compiler.
About div and div.import file:
it is a polyfill for math.div, Dart Sass will prefer files with the extension .import.scss thus it will first load the _div.import file which uses the math.div function
Related PRs:
https://github.com/ezsystems/ezplatform-page-builder/pull/925
https://github.com/ezsystems/ezcommerce-shop/pull/391
https://github.com/ezsystems/ezplatform-calendar/pull/89
ezsystems/ezplatform-richtext#221
Checklist:
$ composer fix-cs
)