added grunt imagemin used to compress images

This commit is contained in:
Henry Oswald 2016-06-18 16:50:56 +01:00
parent fed71ea0bd
commit 1d26be30a9
2 changed files with 14 additions and 2 deletions

View file

@ -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,

View file

@ -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": "",