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/guide/pre-processors.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
75
75
76
76
### Sharing Global Variables
77
77
78
-
`sass-loader` also supports a `prependData` option which allows you to share common variables among all processed files without having to explicit import them:
78
+
`sass-loader` also supports a `additionalData` option which allows you to share common variables among all processed files without having to explicit import them:
79
79
80
80
```js
81
81
// webpack.config.js -> module.rules
@@ -88,8 +88,9 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
88
88
loader:'sass-loader',
89
89
options: {
90
90
// you can also read from a file, e.g. `variables.scss`
91
-
// use `data` here if sass-loader version < 8
92
-
prependData:`$color: red;`
91
+
// use `prependData` here if sass-loader version = 8, or
0 commit comments