Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
feat(build): add support for svg optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Jun 28, 2013
1 parent a6ec045 commit 03d63c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ module.exports = function (grunt) {
}]
}
},
svgmin: {
dist: {
files: [{
expand: true,
cwd: '<%%= yeoman.app %>/images',
src: '{,*/}*.svg',
dest: '<%%= yeoman.dist %>/images'
}]
}
},
cssmin: {
// By default, your `index.html` <!-- Usemin Block --> will take care of
// minification. This option is pre-configured if you do not wish to use
Expand Down Expand Up @@ -244,7 +254,7 @@ module.exports = function (grunt) {
'*.{ico,png,txt}',
'.htaccess',
'bower_components/**/*',
'images/{,*/}*.{gif,webp,svg}',
'images/{,*/}*.{gif,webp}',
'styles/fonts/*'
]
}, {
Expand All @@ -270,6 +280,7 @@ module.exports = function (grunt) {
'coffee',<% if (compassBootstrap) { %>
'compass:dist',<% } %>
'imagemin',
'svgmin',
'htmlmin'
]
},
Expand Down
1 change: 1 addition & 0 deletions templates/common/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"grunt-contrib-imagemin": "~0.1.4",
"grunt-contrib-watch": "~0.4.0",
"grunt-usemin": "~0.1.11",
"grunt-svgmin": "~0.2.0",
"grunt-rev": "~0.1.0",
"grunt-karma": "~0.4.3",
"grunt-open": "~0.2.0",
Expand Down

0 comments on commit 03d63c6

Please sign in to comment.