Last active
August 29, 2015 14:18
-
-
Save romuleald/2e4b7b18834c58dc66c3 to your computer and use it in GitHub Desktop.
Rename destination path in Grunt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
less: { | |
development: { | |
files: [{ | |
expand: true, | |
cwd: 'src/', | |
src: ['**/*.less'], | |
dest: 'css/', | |
ext: '.css', | |
rename: function(dest, src) { | |
//dest contain the 'css/' path | |
//dest will be the file processed like 'foo/bar/file.css' | |
return dest + src.replace('/bar', ''); | |
} | |
}] | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
File:
Will be processed in: