X-Git-Url: https://juplo.de/gitweb/?p=examples%2Ftemplate-development;a=blobdiff_plain;f=Gruntfile.js;fp=Gruntfile.js;h=9125a5526a59220d0435c2ad6fc5bb2649e01f31;hp=a51b0fa1e744d6545c066c29b2beb11688770151;hb=65c774a64c085bd8981cbee2d78c19a5b39871e1;hpb=6a1435be7f6888a5d30d7e47d4fc1791561c921b diff --git a/Gruntfile.js b/Gruntfile.js index a51b0fa..9125a55 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -3,6 +3,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-svgstore'); grunt.initConfig({ @@ -28,6 +29,19 @@ module.exports = function(grunt) { } }, + svgstore: { + options: { + cleanup: true + }, + sprite: { + files: { + 'dist/img/sprite.svg': [ + 'img/mo.svg' + ] + } + } + }, + watch: { copy: { files: [ 'html/**/*.html' ], @@ -36,11 +50,15 @@ module.exports = function(grunt) { less: { files: [ 'less/**/*.less' ], tasks: [ 'less' ] + }, + svgstore: { + files: [ 'img/**/*.svg' ], + tasks: [ 'svgstore' ] } } }); - grunt.registerTask('default', [ 'copy', 'less' ]); + grunt.registerTask('default', [ 'copy', 'less', 'svgstore' ]); };