Sha256: f007f4a17881bd8da84aac88c0a49bcba80f5427ff8e1a0dfa1c1db59956a7af

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 Bytes

Contents

'use strict'

module.exports = function (grunt) {
  var browserSync = require('browser-sync')

  grunt.registerTask('browserSync-init', function () {
    var done = this.async()
    browserSync({
      server: './docs',
      notify: false
    }, function (err, bs) {
      if (err) {
        console.log(err)
      }

      done()
    })
  })

  grunt.registerTask('browserSync-inject', function () {
    browserSync.reload(['docs/css/main.css'])
  })
}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
reustyle-2.0.11 grunt/tasks/browser-sync.js
reustyle-2.0.10 grunt/tasks/browser-sync.js
reustyle-2.0.9 grunt/tasks/browser-sync.js
reustyle-2.0.8 grunt/tasks/browser-sync.js
reustyle-2.0.7 grunt/tasks/browser-sync.js
ustyle-1.19.2 grunt/tasks/browser-sync.js
ustyle-1.16.2 grunt/tasks/browser-sync.js
ustyle-1.16.1 grunt/tasks/browser-sync.js