diff options
| author | James Bligh <618250+blighj@users.noreply.github.com> | 2022-12-07 09:56:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 10:56:00 +0100 |
| commit | e44d348c99f0a449180399045ac54b3909121a03 (patch) | |
| tree | d808d453195d7c206bc2094313e8c7d8b7c499a5 /docs | |
| parent | 9ac97e7eb5a74f813012715c7598c8608e78e178 (diff) | |
Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.
Co-authored-by: James Bligh <james.bligh@silvercloudhealth.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/staticfiles.txt | 9 | ||||
| -rw-r--r-- | docs/releases/4.2.txt | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index 152838736c..0f0e8d8001 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -295,6 +295,8 @@ method). The regular expressions used to find those paths * The `@import`_ rule and `url()`_ statement of `Cascading Style Sheets`_. * `Source map`_ comments in CSS and JavaScript files. +* The `modules import`_ in JavaScript. +* The `modules aggregation`_ in JavaScript. For example, the ``'css/styles.css'`` file with this content: @@ -329,6 +331,11 @@ argument. For example:: Support for finding paths in CSS source map comments was added. +.. versionchanged:: 4.2 + + Support for finding paths to JavaScript modules in ``import`` and + ``export`` statements was added. + .. attribute:: storage.ManifestStaticFilesStorage.max_post_process_passes Since static files might reference other static files that need to have their @@ -382,6 +389,8 @@ hashing algorithm. .. _`url()`: https://www.w3.org/TR/CSS2/syndata.html#uri .. _`Cascading Style Sheets`: https://www.w3.org/Style/CSS/ .. _`source map`: https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map +.. _`modules import`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#importing_features_into_your_script +.. _`modules aggregation`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#aggregating_modules ``ManifestFilesMixin`` ---------------------- diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index 7e2aa6e5d6..77d4c8594c 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -131,7 +131,9 @@ Minor features :mod:`django.contrib.staticfiles` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* ... +* :class:`~django.contrib.staticfiles.storage.ManifestStaticFilesStorage` now + replaces paths to JavaScript modules in ``import`` and ``export`` statements + with their hashed counterparts. :mod:`django.contrib.syndication` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
