aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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