From e49b2747bcc91a9e4e64fce699c664ead5728c14 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 8 Sep 2021 14:20:43 +0200 Subject: [PATCH] Makefile: Avoid `npm` dependency for building webpack Avoid the indirection, and directly call webpack. This avoids adding an `npm` build dependency if/when the RPM wants to rebuild the webpack during package build. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6bd204a..b3ece23 100644 --- a/Makefile +++ b/Makefile @@ -55,10 +55,10 @@ update-po: po/$(PACKAGE_NAME).pot sed -e 's/%{VERSION}/$(VERSION)/g' $< > $@ $(WEBPACK_TEST): $(NODE_MODULES_TEST) $(LIB_TEST) $(shell find src/ -type f) package.json webpack.config.js - NODE_ENV=$(NODE_ENV) npm run build + NODE_ENV=$(NODE_ENV) node_modules/.bin/webpack watch: - NODE_ENV=$(NODE_ENV) npm run watch + NODE_ENV=$(NODE_ENV) node_modules/.bin/webpack --watch clean: rm -rf dist/