dbushell / grunt-svg2png

Grunt plugin to rasterize SVG to PNG images using PhantomJS
MIT License
76 stars 37 forks source link

file pattern matching isn't accurate #6

Closed whatisboom closed 11 years ago

whatisboom commented 11 years ago

This config is matching files in random folders in my project. some alongside the /img/ folder, and others. Let me know what info I can give you to help fix this.

        svg2png: {
            img: {
                files: [{
                    expand: true,
                    cwd: 'assets/img/',
                    src: ['**/*.svg']
                }]
            }
        },
whatisboom commented 11 years ago

Solved: the src was overriding the cwd, and it was going from the project base/gruntfile location