From 77ffdc699032f9a669caa7a640cfe734da49cc5a Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 18 Mar 2016 08:48:26 -0400 Subject: Creating sepearate dev and prod webpack builds. Enabled webpack watch mode. Updated to latest master webpack to fix bug in watch mode --- webapp/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'webapp/Makefile') 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 -- cgit v1.2.3-1-g7c22