-
Notifications
You must be signed in to change notification settings - Fork 223
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: Introduce ESBuild for CSS and Images #6864
Merged
+1,320
−2,117
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e985b3d
OBS-385: use ESBuild to bundle crashstats_base as first test case
toufali 259a106
OBS-385: remove unwanted npm scripts
toufali d80d70e
OBS-385: create anonymous volumes for node_modules
toufali c225162
OBS-385: add `webapp/static` anonymous volume
toufali 905009a
OBS-385: ignore collectstatic css and other things
toufali 45d8772
OBS-385: update ESBuild entrypoints
toufali 2eb8406
OBS-385: use staticfiles backend storage instead of pipeline
toufali b2ab0b4
OBS-385: handle media assets with ESBuild
toufali 5f10306
OBS-385: build CSS and images using ESBuild
toufali 15a66d6
OBS-385: update HTML files to use ESBuild CSS and images
toufali 02c8c62
OBS-385: revert work-around for status.css
toufali d39b1de
OBS-385: revert staticfiles storage to fix js files not served in pro…
toufali c1b57a2
OBS-385: update collectstatic "ignore" specificity to allow admin css
toufali 2bb3372
OBS-385: use npm script in test.sh for consolidation
toufali 857ab27
OBS-397: add ESBuild "watch" mode
toufali 89d71d4
OBS-385: remove STATIC_ROOT declaration from local_dev.env
toufali 831b90b
OBS-385: restore bundle quality check, removing PIPELINE_CSS
toufali 92e00c6
OBS-385: update webapp documentation
toufali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,5 @@ build/ | |
**/*.pyc | ||
__pycache__ | ||
.cache | ||
webapp-django/node_modules | ||
webapp-django/static | ||
symbols/ | ||
node_modules | ||
symbols/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
We're not using the stylesheet and static template functions anymore which means these are all hard-coded paths to the destination for these files. In order to know the destination, a developer needs to know how the files are transformed from the source.
We should document how all the different files are transformed, by what, and where they end up so this is easier to reason about.
Looks like this PR doesn't update the docs. I think we want to update several sections in this file:
https://github.com/mozilla-services/socorro/blob/main/docs/service/webapp.rst
Particularly the "Static Assets" and "Production-style Assets" sections. Also, the "Running in a server environment" section is probably wrong--we should just remove that.