BrowserSync plugin for Hexo.
Switch branches/tags
Clone or download
bhamlett-rv and demurgos Add support for named instances
* Added check in hexo-config.json for named instance for browsersync session

* PR feedback - Update empty string to undefined for bsInstanceName

* Update README to document instanceName browsersync property

Closes #20
Latest commit c26630b Jul 3, 2018

README.md

hexo-browsersync

BrowserSync plugin for Hexo.

Installation

$ npm install hexo-browsersync --save

Usage

hexo-browsersync is transparent. Once installed, just run hexo-server as you usually do, and you will benefit from the features from browsersync.

Options

BrowserSync options are supported inside _config.yml file, e.g.:

browsersync:
  logLevel: "warn"
  ghostMode:
    scroll: true
  instanceName: "uniqueString"

You can check BrowserSync options for more info.

N.B.: logSnippet is disabled by default. Also, instanceName allows you to create a named instance. The default value is undefined (anonymous instance).

License

MIT