Skip to content

Instantly share code, notes, and snippets.

@fernandoacorreia
Created April 18, 2014 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoacorreia/11062046 to your computer and use it in GitHub Desktop.
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)
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