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.
This commit is contained in:
parent
03d8324c19
commit
e49b2747bc
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -55,10 +55,10 @@ update-po: po/$(PACKAGE_NAME).pot
|
||||||
sed -e 's/%{VERSION}/$(VERSION)/g' $< > $@
|
sed -e 's/%{VERSION}/$(VERSION)/g' $< > $@
|
||||||
|
|
||||||
$(WEBPACK_TEST): $(NODE_MODULES_TEST) $(LIB_TEST) $(shell find src/ -type f) package.json webpack.config.js
|
$(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:
|
watch:
|
||||||
NODE_ENV=$(NODE_ENV) npm run watch
|
NODE_ENV=$(NODE_ENV) node_modules/.bin/webpack --watch
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf dist/
|
rm -rf dist/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue