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
Let `stylus-loader` users opt for webpack resolving before stylus. This
can allow for most common stylus files to be found in parallel through
webpack's async resolver instead of blocking on file IO with stylus's
sync resolver.
Copy file name to clipboardExpand all lines: README.md
+10
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,16 @@ stylus: {
81
81
82
82
where `~` resolves to `node_modules/`
83
83
84
+
### Prefer webpack resolving
85
+
86
+
`stylus-loader` currently prefers resolving paths with stylus's resovling utilities and then falling back to webpack when it can't find files. Use the `preferPathResolver` option with the value `'webpack'` to swap this. This has the benefit of using webpack's async resolving instead of stylus's sync resolving. If you have a lot of dependencies in your stylus files this'll let those dependencies be found in parallel.
0 commit comments