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

Use minified versions + sourcemaps of vendor statics #1549

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

davidbgk
Copy link
Contributor

We need to find a way to keep in sync css.html + js.html with test/index.html. Maybe generating the page with Django too?

@yohanboniface
Copy link
Member

We need to find a way to keep in sync css.html + js.html with test/index.html. Maybe generating the page with Django too?

Right! Now that we need the index.html to be served, why not serving it by Django ?

@@ -38,34 +38,19 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage):
),
)

# https://github.com/django/django/blob/0fcee1676c7f14bb08e2cc662898dee56d9cf207↩
Copy link
Member

Choose a reason for hiding this comment

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

This change is unclear to me.

Copy link
Contributor Author

@davidbgk davidbgk Jan 21, 2024

Choose a reason for hiding this comment

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

Previously, we were skipping .map files from the default regexp (because they were missing from the vendors dir) but now that these files are copied it's OK to get back to default and hash these filenames too.

@davidbgk davidbgk merged commit 7729035 into master Jan 21, 2024
4 checks passed
@davidbgk davidbgk deleted the vendors-minified-sourcemaps branch January 21, 2024 20:09
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.

2 participants