grunt watch & connect

前端 未结 3 1839
情深已故
情深已故 2021-02-05 04:30

I am kinda new to grunt and want to use it with Jekyll and some LESS-compiling.

My problem now is, I already have fully functioning LESS-comipiling with live reload and

3条回答
  •  走了就别回头了
    2021-02-05 05:10

    I think the heart of your solution is to create a new task or edit an existing task, like so:

    // Start web server
    grunt.registerTask('serve', [
        'jekyll:dist',
        'connect:livereload',
        'watch'
    ]);
    

    ...which you would run with a $ grunt serve. less, jshint, uglify and connect are already included under watch.

提交回复
热议问题