Created
April 18, 2014 20:05
-
-
Save fernandoacorreia/11062046 to your computer and use it in GitHub Desktop.
Gruntfile configuration to copy images from bower_components into dist/styles/images (see http://stackoverflow.com/a/16973048/376366)
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
imagemin: { | |
dist: { | |
files: [{ | |
expand: true, | |
cwd: '<%= yeoman.app %>/images', | |
src: '{,*/}*.{gif,jpeg,jpg,png}', | |
dest: '<%= yeoman.dist %>/images' | |
}, { | |
expand : true, | |
flatten : true, | |
cwd : '<%= yeoman.app %>/bower_components', | |
src : '**/*.{png,jpg,jpeg,gif}', | |
dest : '<%= yeoman.dist %>/styles/images' | |
}] | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment