You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							37 lines
						
					
					
						
							696 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							37 lines
						
					
					
						
							696 B
						
					
					
				| module.exports = function(grunt) { | |
| 	'use strict'; | |
| 
 | |
| 	grunt.initConfig({ | |
| 		clean: ['dist'], | |
| 		uglify: { | |
| 			options: { | |
| 				preserveComments: 'some', | |
| 				sourceMap: true | |
| 			}, | |
| 			build: { | |
| 				expand: true, | |
| 				cwd: 'js', | |
| 				src: ['**/*.js', ['!**/*.min.js']], | |
| 				dest: 'js', | |
| 				ext: '.min.js', | |
| 			} | |
| 		}, | |
| 		cssmin: { | |
| 			options: { | |
| 				keepBreaks: true | |
| 			}, | |
| 			build: { | |
| 				expand: true, | |
| 				cwd: 'css', | |
| 				src: ['**/*.css', ['!**/*.min.css']], | |
| 				dest: 'css', | |
| 				ext: '.min.css', | |
| 			} | |
| 		} | |
| 	}); | |
| 	grunt.loadNpmTasks('grunt-contrib-clean'); | |
| 	grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| 	grunt.loadNpmTasks('grunt-contrib-cssmin'); | |
| 	grunt.registerTask('default', ['clean', 'uglify', 'cssmin']); | |
| 
 | |
| }; |