Преглед изворни кода

compress to 7 levels and only watch public files

Henry Oswald пре 10 година
родитељ
комит
4fc9c9a263
1 измењених фајлова са 6 додато и 3 уклоњено
  1. 6 3
      services/web/Gruntfile.coffee

+ 6 - 3
services/web/Gruntfile.coffee

@@ -28,7 +28,7 @@ module.exports = (grunt) ->
 
 
 		watch:
 		watch:
 			coffee:
 			coffee:
-				files: '**/*.coffee'
+				files: 'public/**/*.coffee'
 				tasks: ['quickcompile:coffee']
 				tasks: ['quickcompile:coffee']
 				options: {}
 				options: {}
 
 
@@ -47,14 +47,17 @@ module.exports = (grunt) ->
 
 
 
 
 		imagemin:
 		imagemin:
-			dynamic: {                         
+			dynamic:                       
 				files: [{
 				files: [{
 					expand: true
 					expand: true
 					cwd: 'public/img/'
 					cwd: 'public/img/'
 					src: ['**/*.{png,jpg,gif}']
 					src: ['**/*.{png,jpg,gif}']
 					dest: 'public/img/'
 					dest: 'public/img/'
 				}]
 				}]
-			}			
+			options:
+				optimizationLevel: 7
+
+
 
 
 		coffee:
 		coffee:
 			app_dir: 
 			app_dir: