From 5c0035fe37cdec5f7927c3213365285a7fd4d51b Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 15 Nov 2019 19:31:20 +0100 Subject: fix: `make watch` now changes prev_env + change default env values --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f4e80b4..720127e 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,13 @@ build: VERSION $(PREV_ENV_FILE) $(js_bundles) # Run webpack in watch mode. .PHONY: watch -watch: node_modules - webpack --env dev --watch +watch: ENV := dev +watch: + $(MAKE) .watch ENV=$(ENV) + +.PHONY: .watch +.watch: $(PREV_ENV_FILE) node_modules + webpack --env $(ENV) --watch # Create a new release and upload it on GitHub. .PHONY: release -- cgit v1.2.3