diff --git a/Makefile b/Makefile index d95dd15..53cdcc3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ ESLINT=./node_modules/.bin/eslint WEBPACK=./node_modules/.bin/webpack --progress --colors +WEBPACK_DEV_SERVER=./node_modules/.bin/webpack-dev-server # ------------------------------------------------------------------------------ @@ -9,6 +10,9 @@ build: watch: $(WEBPACK) --watch --watch-poll +serve: + $(WEBPACK_DEV_SERVER) --host 0.0.0.0 --content-base ./ + # ------------------------------------------------------------------------------ lint: @@ -21,4 +25,4 @@ test: # ------------------------------------------------------------------------------ -.PHONY: build watch lint test +.PHONY: build watch serve lint test diff --git a/index.html b/index.html new file mode 100644 index 0000000..42edce4 --- /dev/null +++ b/index.html @@ -0,0 +1,7 @@ + + +
+ ++ +
++ Min: + Max: +
+ + - - + var demoWorker = new Worker('worker.js'); + renderer.connectWorker(demoWorker); + +