How to use grunt-contrib-livereload?

后端 未结 4 1602
一个人的身影
一个人的身影 2020-12-04 07:59

I\'m trying to use grunt-contrib-livereload, but can\'t seem to figure it out. The readme seems to skip over everything that I need explained, and then ends with an example

4条回答
  •  时光说笑
    2020-12-04 08:37

    I know this is a little old but can help someone. In the Gruntfile.js add "options":

    sass: {
        files: 'scss/**/*.scss',
        tasks: ['sass'],
        options: {
          livereload: true,
        }
      }
    

    In the index add:

    
    

提交回复
热议问题