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
|`silent`| boolean |`false`|| Do **not** display warnings. |
120
-
|`root`| string |_unset_|| Similar to the (now defunct) option in `css-loader`.<br/>This string, possibly empty, is prepended to absolute URIs.<br/>Absolute URIs are only processed if this option is set. |
121
-
|`join`| function |_inbuilt_| advanced | Custom join function.<br/>Use custom javascript to fix asset paths on a per-case basis.<br/>Refer to the default implementation for more information. |
122
-
|`absolute`| boolean |`false`| useless | Forces URIs to be output as absolute file paths.<br/>This is retained for historical compatibility but is likely to be removed in the future, so let me know if you use it. |
|`silent`| boolean |`false`|| Do **not** display warnings. |
121
+
|`root`| string |_unset_|| Similar to the (now defunct) option in `css-loader`.<br/>This string, possibly empty, is prepended to absolute URIs.<br/>Absolute URIs are only processed if this option is set. |
122
+
|`join`| function |_inbuilt_| advanced | Custom join function.<br/>Use custom javascript to fix asset paths on a per-case basis.<br/>Refer to the default implementation for more information. |
123
+
|`absolute`| boolean |`false`| useless | Forces URIs to be output as absolute file paths.<br/>This is retained for historical compatibility but is likely to be removed in the future, so let me know if you use it. |
123
124
124
125
## How it works
125
126
@@ -160,6 +161,8 @@ All `webpack1`-`webpack4` with contemporaneous loaders/plugins.
160
161
161
162
Refer to `test` directory for full webpack configurations (as used in automated tests).
162
163
164
+
Some edge cases with `libsass` on `Windows` (see below).
165
+
163
166
### Engines
164
167
165
168
The `engine:postcss` is by far the more reliable option.
@@ -180,6 +183,35 @@ However recall that any paths that _are_ processed will have windows back-slash
180
183
181
184
It can also be useful to process absolute URIs if you have a custom `join` function and want to process all paths. However this is perhaps better done with some separate `postcss` plugin.
182
185
186
+
### Windows line breaks
187
+
188
+
Normal windows linebreaks are `CRLF`. But sometimes libsass will output single `CR` characters.
189
+
190
+
This problem is specific to multiline declarations. Refer to the [libsass bug #2693](https://github.com/sass/libsass/issues/2693).
191
+
192
+
If you have _any_ such multiline declarations preceding `url()` statements it will fail your build.
193
+
194
+
Libsass doesn't consider these orphan `CR` to be newlines but `postcss` engine does. The result being an offset in source-map line-numbers which crashes `resolve-url-loader`.
0 commit comments