summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2022-01-18 09:06:19 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-01-18 12:53:14 +0100
commitdc8bb35e39388d41b1f38b6c5d0181224e075f16 (patch)
treecbe024d80ae19b1e7d298d951804d6d69dd8784f /docs
parentfac26684fd6228669a38104502a2f7b76340ebd2 (diff)
Fixed #33446 -- Added CSS source map support to ManifestStaticFilesStorage.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt8
-rw-r--r--docs/releases/4.1.txt3
2 files changed, 8 insertions, 3 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index eb6703685b..a0b466ad28 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -294,7 +294,7 @@ method). The regular expressions used to find those paths
(``django.contrib.staticfiles.storage.HashedFilesMixin.patterns``) cover:
* The `@import`_ rule and `url()`_ statement of `Cascading Style Sheets`_.
-* The `source map`_ comment in JavaScript.
+* `Source map`_ comments in CSS and JavaScript files.
For example, the ``'css/styles.css'`` file with this content:
@@ -327,10 +327,14 @@ argument. For example::
.. versionchanged:: 4.0
- Support for finding paths in the source map comments was added.
+ Support for finding paths in JavaScript source map comments was added.
The ``manifest_storage`` argument was added.
+.. versionchanged:: 4.1
+
+ Support for finding paths in CSS source map comments was added.
+
.. attribute:: storage.ManifestStaticFilesStorage.max_post_process_passes
Since static files might reference other static files that need to have their
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt
index 32e816b940..b6112fe29e 100644
--- a/docs/releases/4.1.txt
+++ b/docs/releases/4.1.txt
@@ -139,7 +139,8 @@ Minor features
:mod:`django.contrib.staticfiles`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-* ...
+* :class:`~django.contrib.staticfiles.storage.ManifestStaticFilesStorage` now
+ replaces paths to CSS source map references with their hashed counterparts.
:mod:`django.contrib.syndication`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~