How to run two grunt watch tasks simultaneously

前端 未结 9 1051
情歌与酒
情歌与酒 2020-12-12 16:29

Is it possible to run two watch tasks simultaneously?

I understand that I can have any number of tasks I want inside watch settings and just launch grun

9条回答
  •  隐瞒了意图╮
    2020-12-12 16:50

    Concurrent works fine for me

    concurrent: {
                options: {
                    logConcurrentOutput: true
                },
                set1: ['watch:html', 'watch:styles'],
            },
    
    grunt.registerTask('default', 'watch');
    grunt.registerTask('htmlcss', ['concurrent:set1']);
    

提交回复
热议问题