summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGildardo Adrian Maravilla Jacome <gilmrjc@gmail.com>2021-01-04 20:28:01 -0600
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-05-31 11:09:48 +0200
commit91e21836f667c784a8a63ab1f18d81f553e679cb (patch)
treecb781866791924e0003bf2151eb9dc7a04c89096 /docs
parent781b44240a06f0c868254f40f36ce46c927f56d1 (diff)
Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt7
-rw-r--r--docs/releases/4.0.txt4
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index f22f32c78d..14c739b3ea 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`_.
* The `source map`_ comment in JavaScript.
+* The `modules import`_ in JavaScript.
+* The `modules aggregation`_ in JavaScript.
For example, the ``'css/styles.css'`` file with this content:
@@ -315,6 +317,9 @@ For example, the ``'css/styles.css'`` file with this content:
Support for finding paths in the source map comments was added.
+ 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
@@ -368,6 +373,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.0.txt b/docs/releases/4.0.txt
index eecbc9e4d8..7695ce95a2 100644
--- a/docs/releases/4.0.txt
+++ b/docs/releases/4.0.txt
@@ -149,6 +149,10 @@ Minor features
replaces paths to JavaScript source map references with their hashed
counterparts.
+* :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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~