Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shakyshane/bs-snippet-injector


https://github.com/shakyshane/bs-snippet-injector

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

###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