Skip to content

Commit 105fc1b

Browse files
committed
[Encore] Updating for new sass options ability
1 parent 70b7fab commit 105fc1b

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

frontend/encore/bootstrap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ this, you can use the ``resolve_url_loader`` option:
4141
4242
// webpack.config.js
4343
Encore
44-
+ .enableSassLoader({
44+
+ .enableSassLoader(function(sassOptions) {}, {
4545
+ resolve_url_loader: false
4646
+ })
4747
;

frontend/encore/css-preprocessors.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,21 @@ And enable it in ``webpack.config.js``:
2222
.enableSassLoader()
2323
;
2424
25-
That's it! All files ending in ``.sass`` or ``.scss`` will be pre-processed.
25+
That's it! All files ending in ``.sass`` or ``.scss`` will be pre-processed. You
26+
can also pass options to ``sass-loader``:
27+
28+
.. code-block:: javascript
29+
30+
// webpack.config.js
31+
// ...
32+
33+
Encore
34+
// ...
35+
.enableSassLoader(function(sassOptions) {
36+
// https://github.com/sass/node-sass#options
37+
// options.includePaths = [...]
38+
});
39+
;
2640
2741
Using LESS
2842
----------

0 commit comments

Comments
 (0)