mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.
This commit is contained in:
committed by
Mariusz Felisiak
parent
781b44240a
commit
91e21836f6
@@ -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``
|
||||
----------------------
|
||||
|
||||
@@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user