bs-snippet-injector
Write & Remove the BrowserSync Snippet to a file
Last updated 12 years ago by shakyshane .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (12 years ago)

8 Versions

  • 2.0.1                                ...           12 years ago
  • 2.0.0                                ...           12 years ago
  • 0.0.7                                ...           12 years ago
  • 0.0.5                                ...           12 years ago
  • 0.0.4                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 32
Today 0
This Week 0
This Month 16
Last Day 0
Last Week 8
Last Month 9
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE