bs-snippet-injector

WebJar for bs-snippet-injector

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

bs-snippet-injector
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

bs-snippet-injector
WebJar for bs-snippet-injector
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download bs-snippet-injector

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/bs-snippet-injector/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>bs-snippet-injector</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/bs-snippet-injector/
implementation 'org.webjars.npm:bs-snippet-injector:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/bs-snippet-injector/
implementation ("org.webjars.npm:bs-snippet-injector:2.0.1")
'org.webjars.npm:bs-snippet-injector:jar:2.0.1'
<dependency org="org.webjars.npm" name="bs-snippet-injector" rev="2.0.1">
  <artifact name="bs-snippet-injector" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='bs-snippet-injector', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "bs-snippet-injector" % "2.0.1"
[org.webjars.npm/bs-snippet-injector "2.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
2.0.1