Grunt任务无限期运行
我已经安装了咕噜声,并尝试grunt-react
和grunt-contrib-imagemin
任务。 我已经安装了下面的Gruntfile.js
。
module.exports = function(grunt) { grunt.initConfig ({ imagemin: { dynamic: { files: [{ expand: true, cwd: 'public', src: ['development/images/*.{png,jpg,gif}'], dest: 'images' }], options: { cache: false } } }, react: { single_file_output: { files: { 'bundle.jsx': 'login.jsx' } } } }); grunt.loadNpmTasks('grunt-contrib-imagemin'); grunt.loadNpmTasks('grunt-react'); grunt.registerTask('imagemin', ['imagemin']); grunt.registerTask('react', ['react']); };
从命令行,我开始任务作为grunt react
或grunt imagemin
。 在通过一个--verbose
CLI标志后, Grunt
报告所有检查都OK
。 然而,这两个任务无限期地运行。 他们永远不会结束 请帮帮我。
这是我的Grunt版本信息:
grunt-cli v0.1.13 grunt v0.4.5
这里是命令行输出:
Running "react" task
这是用--verbose
标志重复打印的。
我能够通过改变以下内容来实现它的工作:
grunt.registerTask('reactify', ['react']);
我改变了任务的名字。 我认为,由于内部devise的循环性,导致无限期执行。