make-livereload

Livereload target for make

Usage no npm install needed!

<script type="module">
  import makeLivereload from 'https://cdn.skypack.dev/make-livereload';
</script>

README

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