diff options
author | n-peugnet <n.peugnet@free.fr> | 2019-11-15 19:31:20 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2019-11-15 19:39:20 +0100 |
commit | 5c0035fe37cdec5f7927c3213365285a7fd4d51b (patch) | |
tree | b95805b7ab33d739056febd0346e5c1c9673e849 /Makefile | |
parent | 848da2065ee7e75db88e6d39f9cb8798148b0580 (diff) | |
download | wcms-5c0035fe37cdec5f7927c3213365285a7fd4d51b.tar.gz wcms-5c0035fe37cdec5f7927c3213365285a7fd4d51b.zip |
fix: `make watch` now changes prev_env
+ change default env values
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |