Sha256: 16c2c3893a6b9178bd009da3a454a5a43098a746306e5cac3fe19cc40a6a68ed

Contents?: true

Size: 430 Bytes

Versions: 19

Compression:

Stored size: 430 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) {
          done();
      });
  });

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ustyle-1.15.3 grunt/tasks/browser-sync.js
ustyle-1.14.11 grunt/tasks/browser-sync.js
ustyle-1.14.10 grunt/tasks/browser-sync.js
ustyle-1.14.0 grunt/tasks/browser-sync.js
ustyle-1.12.6 grunt/tasks/browser-sync.js
ustyle-1.12.1 grunt/tasks/browser-sync.js
ustyle-1.12.0 grunt/tasks/browser-sync.js
ustyle-1.11.1 grunt/tasks/browser-sync.js
ustyle-1.10.0 grunt/tasks/browser-sync.js
ustyle-1.8.7 grunt/tasks/browser-sync.js
ustyle-1.8.1 grunt/tasks/browser-sync.js
ustyle-1.8.0 grunt/tasks/browser-sync.js
ustyle-1.7.0 grunt/tasks/browser-sync.js
ustyle-1.6.1 grunt/tasks/browser-sync.js
ustyle-1.5.8 grunt/tasks/browser-sync.js
ustyle-1.4.1 grunt/tasks/browser-sync.js
ustyle-1.4.0 grunt/tasks/browser-sync.js
ustyle-1.3.12 grunt/tasks/browser-sync.js
ustyle-1.3.6 grunt/tasks/browser-sync.js