Output structure mirrors the src
option. Try the cwd
option.
Refer to: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
Example:
jade: {
compile: {
files: [{
expand: true,
cwd: 'jade/',
src: ['**/*.jade'],
dest: 'html/',
ext: '.html'
}]
}
}