Precompile fewer assets, remove service worker #4397
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR does 2 uncontroversial things:
govuk-frontend
asset files from being precompiled (we don’t use them).scss
files from being precompiled (these are only used for thebuild:css
script, which saves a compiled CSS file to/app/assets/build
)It also does 1 potentially controversial thing:
This is dead code. The line that imports the service worked has been commented out since January 2024 (we currently use spreadsheets for offline working). The service worker scripts haven’t been updated alongside other changes so I’m wondering if any of it actually works now.
If we are happy removing the service worker, there is also documentation in the repo that says we use a service worker; should that be updated/removed too?