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
Support thread loader by optional inline emitCss (base64, querystring)
This option makes svelte-loader output base64'd css in querystring,
which is always available to any thread.
It is turned off by default because it pollutes webpack's console
output, but if user needs to use thread-loader, he can.
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,29 @@ module.exports = {
276
276
}
277
277
```
278
278
279
+
## Using svelte-loader in combination with thread-loader
280
+
281
+
There is a way to make `svelte-loader` support `thread-loader`.
282
+
283
+
Enable `inlineCss: true` in options as shown below. It will make `svelte-loader` output component css in base64 as a query string to webpack, instead of saving it to a Map, and passing key to that map.
284
+
285
+
This will make console output unpleasant to look at, but `thread-loader` will have access to the css data it needs to function properly.
0 commit comments