Grunt cwd option issue
问题 I am trying to configure grunt-svg-sprite plugin in my project and as per documentation here http://gruntjs.com/configuring-tasks: cwd All src matches are relative to (but don't include) this path. src Pattern(s) to match, relative to the cwd. And as per https://www.npmjs.com/package/grunt-svg-sprite However, as the path/to/assets would become part of the shape IDs, you will most likely want to add a working directory in most cases: your_target: { expand : true, cwd : 'path/to/assets', src :