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.

28 lines
637 B

2 years ago
###bs-snippet-injector
Write & Remove the BrowserSync Snippet to a file
This is an alternative to using the BrowserSync proxy.
##Install
```bash
$ npm install browser-sync bs-snippet-injector
```
###Example
```js
// 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"
});
```