-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
build: Remove unneccessary built-in XBlock Sass built steps #35833
build: Remove unneccessary built-in XBlock Sass built steps #35833
Conversation
@@ -32,47 +32,14 @@ def add_css_to_fragment(fragment, css_relative_path): | |||
if not css_absolute_path.is_file(): | |||
raise FileNotFoundError(f"css file not found: {css_absolute_path}") | |||
css_static_path = Path('css-builtin-blocks') / css_relative_path.with_suffix('.css') | |||
css_url = get_static_file_url(str(css_static_path)) # get_static_file_url is theme-aware. |
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.
Note for reviewers: I removed this comment because this step is not theme aware any more. It will always return the same CSS file regardless of theme. Theme customizations will instead be injected via the CSS variables defined in common/static/sass/_builtin-block-variables
.
Since all built-in block Sass is gone, we remove two final pieces of code: * the steps in `npm run compile-sass` which compiled `xmodule/assets`, and * the now-unused `add_sass_to_fragment` function. This should speed up the edx-platform assets build a little bit. This commit also includes some minor dev doc updates. Part of: openedx#35300
9f4cccb
to
b323c2a
Compare
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
Description
Since all built-in block Sass is gone, we remove two final pieces of code:
npm run compile-sass
which compiledxmodule/assets
, andadd_sass_to_fragment
function.This should speed up the edx-platform assets build a little bit.
This commit also includes some minor dev doc updates.
Supporting info
#35300
Testing instructions
npm run build-dev
. Ensure there are no errors logged.