webpack-contrib/image-minimizer-webpack-plugin

exclude sub directory

dx1ded opened this issue · 2 comments

Hey there! If you need support, help, or advice then this is not the place to ask.
I have such structure:

image

How can i exclude svg folder? (because it processed by another loader)
Oh, here's my loader code:

image

Please use exclude: /(\/|\\)svg(\/|\\)/, you can put more directories before/after

@alexander-akait Thank you! You saved my work twice)