Skip to content
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

OBS-385: Replace django-pipeline #6864

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

toufali
Copy link
Contributor

@toufali toufali commented Jan 13, 2025

Using a modern build tool such as ESBuild allows us to use best-practice CSS features such as @import and advanced optimizations such as bundling, transpilation, and minification without the need for additional 3rd party tools and complex configuration.

This is a work-in-progress posted for comment before applying changes to all other bundles/entrypoints (in bundles.py) :

  • uses crashstats_base as first test case
  • replaces cssmin for minification (removes 3rd-party dep)
  • fixes hacky filenames for fonts to work with ESBuild
  • removes unused "fontawesome" styles and 3rd-party dep

@toufali toufali requested a review from a team as a code owner January 13, 2025 23:29
@toufali toufali requested a review from willkg January 13, 2025 23:29
@toufali toufali changed the title OBS-385: use ESBuild for CSS bundles OBS-385: Replace django-pipeline Jan 13, 2025
@@ -16,10 +16,7 @@
{% endblock %}
{% endblock %}

{% block site_css %}
{% stylesheet 'crashstats_base' %}
{% stylesheet 'fontawesome' %}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I searched for the classes and fonts specified by the "fontawesome" stylesheet but couldn't find any used. This stylesheet is apparently only used on this page. This stylesheet may have originally been used for icons, but I notice other fonts being specified for icons, likely replacing the fontawesome package.

@toufali toufali force-pushed the OBS-385/Replace-django-pipeline branch 2 times, most recently from 862b507 to fb96602 Compare January 14, 2025 04:32
- use crashstats_base as first test case
- replace cssmin for minification
- fix hacky filenames for fonts to work with ESBuild
- remove unused "fontawesome" styles
@toufali toufali force-pushed the OBS-385/Replace-django-pipeline branch from fb96602 to cc1fe63 Compare January 16, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant