From 4fc9c9a26386b4ddb49690e0d2c16e15757495db Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Sat, 18 Jun 2016 19:16:45 +0100 Subject: [PATCH] compress to 7 levels and only watch public files --- services/web/Gruntfile.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/web/Gruntfile.coffee b/services/web/Gruntfile.coffee index 7968ab040b..9c47dfec55 100644 --- a/services/web/Gruntfile.coffee +++ b/services/web/Gruntfile.coffee @@ -28,7 +28,7 @@ module.exports = (grunt) -> watch: coffee: - files: '**/*.coffee' + files: 'public/**/*.coffee' tasks: ['quickcompile:coffee'] options: {} @@ -47,14 +47,17 @@ module.exports = (grunt) -> imagemin: - dynamic: { + dynamic: files: [{ expand: true cwd: 'public/img/' src: ['**/*.{png,jpg,gif}'] dest: 'public/img/' }] - } + options: + optimizationLevel: 7 + + coffee: app_dir: