Opal-Estate-Pro/node_modules/bs-snippet-injector
2019-09-13 11:27:52 +07:00
..
.npmignore style Dashboard 2019-09-13 11:27:52 +07:00
example.js style Dashboard 2019-09-13 11:27:52 +07:00
index.html style Dashboard 2019-09-13 11:27:52 +07:00
index.js style Dashboard 2019-09-13 11:27:52 +07:00
package.json style Dashboard 2019-09-13 11:27:52 +07:00
readme.md style Dashboard 2019-09-13 11:27:52 +07:00

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