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

Update how we compile our assets #4363

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

tim-s-ccs
Copy link
Collaborator

@tim-s-ccs tim-s-ccs commented May 30, 2024

I’ve updated how our assets work, both CSS and JavaScript.

For CSS I’ve made use of CSS Bundling for Rails with Dart Sass to compile our css (this did not require much change).

More importantly, I’ve migrated from Webpack and Shakapacker to use Rollup to compile our Javascript. Our JavaScript setup is not that complicated and configuring and updating webpacker has been a pain point. Rollup is more simple to configure, is faster and the only downside is that we no longer get automatic page reloads when we make changes.

I’ve also reorganised the tests so that we lint before running all the major tests (which should speed up CI and reduce the cost).

@tim-s-ccs tim-s-ccs force-pushed the update-how-we-manage-assets branch 5 times, most recently from 9344441 to 94a0a84 Compare May 30, 2024 16:34
@tim-s-ccs tim-s-ccs force-pushed the update-how-we-manage-assets branch from 94a0a84 to 03837d9 Compare May 31, 2024 07:45
For CSS I’ve made use of [CSS Bundling for Rails](https:/rails/cssbundling-rails) with Dart Sass to compile our css (this did not require much change).

More importantly, I’ve migrated from Webpack and Shakapacker to use Rollup to compile our Javascript. Our JavaScript setup is not that complicated and configuring and updating webpacker has been a
pain point. Rollup is more simple to configure, is faster and the only downside is that we no longer get automatic page reloads when we make changes.

I’ve also reorganised the tests so that we lint before running all the major tests (which should speed up CI and reduce the cost).
@tim-s-ccs tim-s-ccs force-pushed the update-how-we-manage-assets branch from 03837d9 to 6ec06ec Compare June 10, 2024 08:57
@tim-s-ccs tim-s-ccs marked this pull request as ready for review June 10, 2024 09:08
@tim-s-ccs tim-s-ccs merged commit ca6c917 into master Jun 10, 2024
10 checks passed
@tim-s-ccs tim-s-ccs deleted the update-how-we-manage-assets branch June 10, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant