bs-snippet-injector
Write & Remove the BrowserSync Snippet to a file
Last updated 5 years ago by shakyshane .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bs-snippet-injector 
SYNC missed versions from official npm registry.

###bs-snippet-injector Write & Remove the BrowserSync Snippet to a file

This is an alternative to using the BrowserSync proxy.

##Install

$ npm install browser-sync bs-snippet-injector

###Example

// requires version 1.3.3 of BrowserSync or higher.
var browserSync = require("browser-sync");

// register the plugin
browserSync.use(require("bs-snippet-injector"), {
    // path to the file containing the closing </body> tag
    file: "app/design/frontend/project/template/page/1column.phtml" 
});

// now run BrowserSync, wathching CSS files.
browserSync({
  files: "skin/frontend/project/assets/css/*.css"
});

Current Tags

  • 2.0.1                                ...           latest (5 years ago)

8 Versions

  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 74
This Week 2,683
This Month 1,665
Last Day 151
Last Week 2,023
Last Month 11,330
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |