|
@@ -78,15 +78,15 @@ module.exports = function(grunt) {
|
|
build:['global/js/cloud/*.min.js']
|
|
build:['global/js/cloud/*.min.js']
|
|
},
|
|
},
|
|
|
|
|
|
- watch: {
|
|
|
|
- scripts: {
|
|
|
|
- files: ['**/*.js'],
|
|
|
|
- tasks: ['concat','uglify','jshint'],
|
|
|
|
- options: {
|
|
|
|
- spawn: false,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+// watch: {
|
|
|
|
+// scripts: {
|
|
|
|
+// files: ['**/*.js'],
|
|
|
|
+// tasks: ['concat','uglify','jshint'],
|
|
|
|
+// options: {
|
|
|
|
+// spawn: false,
|
|
|
|
+// },
|
|
|
|
+// },
|
|
|
|
+// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -101,6 +101,7 @@ module.exports = function(grunt) {
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
|
|
//注册grunt默认任务
|
|
//注册grunt默认任务
|
|
- grunt.registerTask('default', ['concat','uglify','jshint','watch']);
|
|
|
|
|
|
+ grunt.registerTask('default', ['concat','uglify','jshint']);
|
|
|
|
+ //grunt.registerTask('default', ['concat','uglify','jshint','watch']);
|
|
|
|
|
|
};
|
|
};
|