make-livereload

0.1.2 • Public • Published

make-livereload

Livereload target for Make

Installation

$ npm install --save-dev make-livereload

Example

include node_modules/make-livereload/index.mk

Specify the source, defaulting to *.js *.css in the current directory.

LIVERELOAD_DIR = ./
LIVERELOAD_SRC = $(shell find $(LIVERELOAD_DIR) -name '*.css' -o -name '*.js')
include node_modules/make-livereload/index.mk

Run the livereload server:

$ make livereload

Then run the reload target with watch (consider using visionmedia's watch)

$ watch make reload

Stop it with

$ make livereload-stop

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i make-livereload

Weekly Downloads

2

Version

0.1.2

License

none

Last publish

Collaborators

  • mklabs