Skip to content

kcmr/broccoli-live-server

Repository files navigation

broccoli-live-server

Build Status npm version Commitizen friendly semantic-release codecov Greenkeeper badge Dependency status

Starts a Live Server from a Broccoli tree.

Install

npm i -D broccoli-live-server

Usage

const LiveServer = require('broccoli-live-server');

const tree = funnel('src');
const server = new LiveServer(tree);

return mergeTrees([tree, server]);

API

LiveServer(tree, [options])

options

Type: Object
Default:

{
  open: false,
  ignore: /.*\.map/
}

See Live Server options.

Note: the root option is set by the plugin to the input path.

License

This project is licensed under the MIT License.