Closed whatisboom closed 10 years ago
Using this config, svg's in subfolders of 'img-source' (ie img-source/icons/somefile.svg) would be saved to the 'root' of the img dir (ie img/icons/somefile.png)
svg2png: { img: { files: [{ expand: true, cwd: '/assets/img-source/', src: ['**/*.svg'], dest: '/assets/img/' }] } },
Solved: the src was overriding the cwd, and it was going from the project base/gruntfile location
Using this config, svg's in subfolders of 'img-source' (ie img-source/icons/somefile.svg) would be saved to the 'root' of the img dir (ie img/icons/somefile.png)