diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-18 08:48:26 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-18 10:06:39 -0400 |
commit | 77ffdc699032f9a669caa7a640cfe734da49cc5a (patch) | |
tree | 9f9d5a7c6252a1277db4b8ace44786819dce2d47 /webapp/Makefile | |
parent | 8d571ee498c97128bd797f8ac1cb4c3c995fb875 (diff) | |
download | chat-77ffdc699032f9a669caa7a640cfe734da49cc5a.tar.gz chat-77ffdc699032f9a669caa7a640cfe734da49cc5a.tar.bz2 chat-77ffdc699032f9a669caa7a640cfe734da49cc5a.zip |
Creating sepearate dev and prod webpack builds. Enabled webpack watch mode. Updated to latest master webpack to fix bug in watch mode
Diffstat (limited to 'webapp/Makefile')
-rw-r--r-- | webapp/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/webapp/Makefile b/webapp/Makefile index cd6dfbbad..4cc9be1d3 100644 --- a/webapp/Makefile +++ b/webapp/Makefile @@ -1,4 +1,4 @@ -.PHONY: build test run clean +.PHONY: build test run clean stop test: @echo Checking for style guide compliance @@ -20,8 +20,15 @@ build: | .npminstall test run: .npminstall @echo Running mattermost Webapp for development - npm run run - + npm run run & + +stop: + @echo Stopping changes watching + + @for PROCID in $$(ps -ef | grep "[n]ode.*[w]ebpack" | awk '{ print $$2 }'); do \ + echo stopping webpack watch $$PROCID; \ + kill $$PROCID; \ + done clean: @echo Cleaning Webapp |