mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #34322 -- Made ES module support to ManifestStaticFilesStorage optional.
Co-authored-by: Author: Claude Paroz <claude@2xlibre.net>
This commit is contained in:
parent
2ffa815c73
commit
e10c1688f9
4 changed files with 103 additions and 72 deletions
|
@ -300,6 +300,11 @@ 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.
|
||||
|
||||
Subclass ``ManifestStaticFilesStorage`` and set the
|
||||
``support_js_module_import_aggregation`` attribute to ``True``, if you want to
|
||||
use the experimental regular expressions to cover:
|
||||
|
||||
* The `modules import`_ in JavaScript.
|
||||
* The `modules aggregation`_ in JavaScript.
|
||||
|
||||
|
@ -342,8 +347,8 @@ argument. For example::
|
|||
|
||||
.. versionchanged:: 4.2
|
||||
|
||||
Support for finding paths to JavaScript modules in ``import`` and
|
||||
``export`` statements was added.
|
||||
Experimental optional support for finding paths to JavaScript modules in
|
||||
``import`` and ``export`` statements was added.
|
||||
|
||||
.. attribute:: storage.ManifestStaticFilesStorage.manifest_hash
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue