bs-snippet-injector

Write & Remove the BrowserSync Snippet to a file

MIT 8 个版本
安装
npm install bs-snippet-injector
yarn add bs-snippet-injector
pnpm add bs-snippet-injector
bun add bs-snippet-injector
README

###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"
});
版本列表
2.0.1 2015-04-02
2.0.0 2015-03-25
0.0.7 2014-08-10
0.0.5 2014-08-05
0.0.4 2014-08-05
0.0.3 2014-08-05
0.0.2 2014-07-22
0.0.1 2014-07-22