Skip to content

Commit 77d5d1b

Browse files
Updated docs
1 parent 013247c commit 77d5d1b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/index.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,21 @@ To see the full config from this bundle, run:
142142
143143
The main option is ``root_sass`` option, which defaults to ``assets/styles/app.scss``. This represents the source Sass file.
144144

145+
.. caution::
146+
147+
When defining multiple ``root_sass`` paths, the ``root_sass`` filenames (e.g. ``app.scss``) should be unique, due to the way the css files are generated.
148+
149+
To overcome the need of having unique ``root_sass`` filenames, you could use keys to influence the generated css filename:
150+
151+
.. code-block:: yaml
152+
153+
symfonycasts_sass:
154+
root_sass:
155+
admin: assets/admin/styles/app.scss
156+
website: assets/website/styles/app.scss
157+
158+
The compiled css files will be named `website.css` and `admin.css`.
159+
145160
Using a different binary
146161
--------------------------
147162

0 commit comments

Comments
 (0)