biobulkbende.org/node_modules/bs-snippet-injector
Tancre 0efda7fffe structure, layout and automation 2020-09-16 14:23:28 +02:00
..
.npmignore structure, layout and automation 2020-09-16 14:23:28 +02:00
example.js structure, layout and automation 2020-09-16 14:23:28 +02:00
index.html structure, layout and automation 2020-09-16 14:23:28 +02:00
index.js structure, layout and automation 2020-09-16 14:23:28 +02:00
package.json structure, layout and automation 2020-09-16 14:23:28 +02:00
readme.md structure, layout and automation 2020-09-16 14:23:28 +02:00

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