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
@@ -349,6 +349,29 @@ If you are using autoprefixer for `.css`, then it is better to exclude emitted c
349
349
350
350
This ensures that global css is being processed with `postcss` through webpack rules, and svelte component's css is being processed with `postcss` through `svelte-preprocess`.
351
351
352
+
## Using svelte-loader in combination with thread-loader
353
+
354
+
There is a way to make `svelte-loader` support `thread-loader`.
355
+
356
+
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.
357
+
358
+
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