Migrate all static assets to vite entry point bundles and remove legacy asset handling "compress_assets" #23043
+2,890
−20,410
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.
Fixes: mozilla/addons#2000
Description
Context
Follow up to #22957 migrating the remaining static files to use vite as a bundler.
Testing
Dev Mode
Fresh environment
make down && rm .env
Clean up existing static file artifacts
Now run the app
Expect:
vite
except for static files served by olympia from 3rd party packagesProd mode
Important
Assumed you already ran the dev mode checks to clear pre-existing static assets
Run the app in prod mode
make down && make up DOCKER_TARGET=production
Expect:
nginx
make check
verifies the assets in vite manifest are resolvable in the site-static directoryNote
If DEBUG=True on prod mode, then expect non-minified files
Checklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.