Let\'s say I have home.styl menu/ menu.styl image.svg
home.styl menu/ menu.styl image.svg
home.styl is required from an entry point or JS.
home.styl
Then:
ho
You want to use stylus-loader's resolve url option, which will replace the url() function inside your .styl files with a custom resolver.
stylus-loader
resolve url
url()
.styl
{ test: /\.styl$/, loader: 'style!css!stylus?resolve url' }
See the corresponding code. Pretty cool solution.