You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/compiler-settings.rst
+44-2Lines changed: 44 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,8 @@ Example:
119
119
SASS / SCSS
120
120
===========
121
121
122
+
Ruby-based (legacy) SASS compiler.
123
+
122
124
``executable``
123
125
Path to SASS compiler executable. Default: "sass".
124
126
@@ -159,6 +161,48 @@ Example:
159
161
)
160
162
161
163
164
+
Dart Sass
165
+
=========
166
+
167
+
Dart Sass is the current implementation of SASS.
168
+
169
+
.. note:: Dart Sass compiler is not enabled by default. See the example below for how to enable it.
170
+
171
+
Options:
172
+
173
+
``sourcemap_enabled``
174
+
Boolean. Set to ``True`` to enable source maps. Default: ``False``.
175
+
176
+
``load_paths``
177
+
List of additional paths to find imports. Default: ``None``.
178
+
179
+
``output_style``
180
+
Output style. Default: ``None``.
181
+
Can be "expanded" or "compressed".
182
+
183
+
Example:
184
+
185
+
.. code-block:: python
186
+
187
+
STATIC_PRECOMPILER_COMPILERS= (
188
+
(
189
+
"static_precompiler.compilers.dart_sass.SCSS",
190
+
{
191
+
"sourcemap_enabled": True,
192
+
"load_paths": ["/path"],
193
+
},
194
+
),
195
+
(
196
+
"static_precompiler.compilers.dart_sass.SASS",
197
+
{
198
+
"sourcemap_enabled": True,
199
+
"load_paths": ["/path"],
200
+
"output_style": "compressed",
201
+
},
202
+
),
203
+
)
204
+
205
+
162
206
Libsass
163
207
=======
164
208
@@ -212,8 +256,6 @@ Example:
212
256
),
213
257
)
214
258
215
-
.. note:: Libsass compiler doesn't support Compass extension, but you can replace it with `compass-mixins <https://github.com/Igosuki/compass-mixins>`_.
0 commit comments