Subtheme of barrio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rdrew 573c318665 1st 2 years ago
..
.npmignore 1st 2 years ago
example.js 1st 2 years ago
index.html 1st 2 years ago
index.js 1st 2 years ago
package.json 1st 2 years ago
readme.md 1st 2 years ago

readme.md

###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"
});