vite-svg-loader icon indicating copy to clipboard operation
vite-svg-loader copied to clipboard

How to specify two sets of rules for svgs in different folders?

Open Kasheftin opened this issue 1 year ago • 0 comments

Hi, there're two folders with svg files. One folder contains icons, colors and inline styles should be cleared up there (using removeAttrs and inlineStyles svgo plugins). Another folder contains big colored svgs, they should be served as files or loaded with vite-svg-loader without any plugins. How to write the vite's configuration for this case? How to restrict vite-svg-loader to process only files placed into some folder, and then add one more time with different options to process another folder?

Kasheftin avatar Oct 11 '22 19:10 Kasheftin