dora-plugin-livereload

0.6.0 • Public • Published

dora-plugin-livereload

NPM version Build Status Coverage Status NPM downloads

dora plugin for livereload。


Usage

$ npm i dora dora-plugin-webpack dora-plugin-livereload -SD
$ ./node_modules/.bin/dora --plugins 'webpack,livereload?enableJs=true&enableCss=true&enableImg=true&port=35429&enableAll:false'

Param

always ignore .map files

default:

{
  compiler: false, // 开放给 atool-doc 使用,一般开发者请忽略
  injectHost: localIP, // 指定注入资源文件的 host 名称,诸如 localhost ip 地址 等
  enableJs:true, // 对 js 开启 livereload
  enableCss:true, // 对 css 开启 livereload
  enableImg:true, // 对 image 开启 livereload
  enableAll:false, // 对所有文件开启 livereload
  port: 35729 // livereload 端口号
}

Test

$ npm test

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i dora-plugin-livereload

Weekly Downloads

17

Version

0.6.0

License

MIT

Last publish

Collaborators

  • pigcan