Replace npm with yarn to install/run the webui

This commit is contained in:
Tom Moulard
2022-03-03 18:08:07 +01:00
committed by GitHub
parent 25725e9b2f
commit c7b24f4e9c
7 changed files with 9582 additions and 16663 deletions

View File

@@ -68,7 +68,7 @@ clean-webui:
generate-webui:
if [ ! -f "webui/static/index.html" ]; then \
$(MAKE) build-webui-image; \
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui npm run build:nc; \
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui yarn build:nc; \
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui chown -R $(shell id -u):$(shell id -g) ./static; \
fi