Permalink
Browse files

Add SVG minification

Fixes #947
  • Loading branch information...
1 parent 8523b64 commit 43c0c7c07a03d92509b1f0b5d77b8b4e85a44b51 @sindresorhus sindresorhus committed Mar 17, 2013
Showing with 12 additions and 0 deletions.
  1. +11 −0 app/templates/Gruntfile.js
  2. +1 −0 app/templates/_package.json
View
@@ -205,6 +205,16 @@ module.exports = function (grunt) {
}]
}
},
+ svgmin: {
+ dist: {
+ files: [{
+ expand: true,
+ cwd: '<%%= yeoman.app %>/images',
+ src: '{,*/}*.svg',
+ dest: '<%%= yeoman.dist %>/images'
+ }]
+ }
+ },
cssmin: {
dist: {
files: {
@@ -292,6 +302,7 @@ module.exports = function (grunt) {
'useminPrepare',<% if (includeRequireJS) { %>
'requirejs',<% } %>
'imagemin',
+ 'svgmin',
'htmlmin',
'concat',
'cssmin',
@@ -22,6 +22,7 @@
"grunt-requirejs": "~0.3.2",<% } %>
"grunt-mocha": "~0.2.3",
"grunt-open": "~0.2.0",
+ "grunt-svgmin": "0.1.0",
"matchdep": "~0.1.1"
},
"engines": {

0 comments on commit 43c0c7c

Please sign in to comment.