diff --git a/services/web/Gruntfile.coffee b/services/web/Gruntfile.coffee index 2541d719d9..7968ab040b 100644 --- a/services/web/Gruntfile.coffee +++ b/services/web/Gruntfile.coffee @@ -17,6 +17,7 @@ module.exports = (grunt) -> grunt.loadNpmTasks 'grunt-contrib-watch' grunt.loadNpmTasks 'grunt-parallel' grunt.loadNpmTasks 'grunt-exec' + grunt.loadNpmTasks 'grunt-contrib-imagemin' config = @@ -44,6 +45,17 @@ module.exports = (grunt) -> grunt:true stream:true + + imagemin: + dynamic: { + files: [{ + expand: true + cwd: 'public/img/' + src: ['**/*.{png,jpg,gif}'] + dest: 'public/img/' + }] + } + coffee: app_dir: expand: true, diff --git a/services/web/package.json b/services/web/package.json index 19c057c976..7c4f2e839b 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -69,17 +69,17 @@ "grunt-bunyan": "0.5.0", "grunt-contrib-clean": "0.5.0", "grunt-contrib-coffee": "0.10.0", + "grunt-contrib-imagemin": "^1.0.1", "grunt-contrib-less": "0.9.0", "grunt-contrib-requirejs": "0.4.1", "grunt-contrib-watch": "^1.0.0", "grunt-env": "0.4.4", "grunt-exec": "^0.4.7", - "grunt-parallel": "^0.5.1", - "grunt-file-append": "0.0.6", "grunt-git-rev-parse": "^0.1.4", "grunt-mocha-test": "0.9.0", "grunt-newer": "^1.2.0", + "grunt-parallel": "^0.5.1", "grunt-sed": "^0.1.1", "sandboxed-module": "0.2.0", "sinon": "",