JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.02k stars 273 forks source link

Some loaders will be applied after svg-sprite-loader in extract mode #357

Closed StijnMaenhaut closed 4 years ago

StijnMaenhaut commented 5 years ago

When using this loader in Webpack Encore, the following error appears:

Module Warning (from ./node_modules/svg-sprite-loader/lib/loader.js):
svg-sprite-loader exception. Some loaders will be applied after svg-sprite-loader in extract mode

Reference

Within Webpack Encore, only the priority/order of plugins can be changed, not the priority of loaders. The build succeeds, but keeps throwing this warning on every compile. I searched a lot on this topic, but couldn't find any working solutions (including disabling the images loader).

Can you help me out?

infabo commented 4 years ago

This is still a thing in 2020

kisenka commented 4 years ago

This happens when some loaders applied after svg-sprite-loader in extract mode. @StijnMaenhaut @infabo what loaders used in your projects after svg-sprite-loader. If it's inconvenient I can remove this warning.

infabo commented 4 years ago

I guess it is the image-webpack-loader thats running after. So the warning is there for a reason. But as @StijnMaenhaut already stated, priority/order of loaders cant be changed in webpack encore. So it may be a thing to fix in encore instead.

kisenka commented 4 years ago

So I closing this issue?

StijnMaenhaut commented 4 years ago

Yes, you can close the issue. Needs to be fixed in Webpack Encore.