소스 검색

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: