Webpack && stylus-loader incorrectly resolve url paths
Let's say I have home.styl menu/ menu.styl image.svg home.styl is required from an entry point or JS. Then: home.styl imports menu/menu.styl menu/menu.styl has url(image.svg) . The problem is that image.svg is not found. It exists in the same folder as menu.styl , but is not resolved. The loaders are: loaders: [{ test: /\.styl$/, loader: 'style!css!stylus' }, { test: /\.(png|jpg|svg|ttf|eot|woff|woff2)$/, loader: 'file?name=[path][name].[ext]' }] Below are my ideas why that fails. Hope to get an answer how to fix that. =========== If url(image.svg) is required from menu.styl , it should be