aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-27 09:21:07 +0200
committerGitHub <noreply@github.com>2024-04-27 07:21:07 +0000
commitdcc3c17e5c41ad446b71215b095617e066a2e8e1 (patch)
tree741e5a86948f1091e05b9d8aa74aafdd23fb795b /Makefile
parent27861d711b6284ccc774f974d8a5813ca2c488eb (diff)
downloadgitea-dcc3c17e5c41ad446b71215b095617e066a2e8e1.tar.gz
gitea-dcc3c17e5c41ad446b71215b095617e066a2e8e1.zip
Suppress browserslist warning in webpack target (#30571)
1. Set [`BROWSERSLIST_IGNORE_OLD_DATA`](https://github.com/browserslist/browserslist/blob/c6ddf7b3870a4585822d06ec77e8dd2401b8e1ed/node.js#L400) to avoid warning on outdated browserslist data which the end user can likely not do anything about and which is currently visible in the v1.21 branch. 2. Suppress all command echoing and add a "Running webpack..." message in place. Warning in question was this: ``` Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme ```
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2a78c907c0..6477b26664 100644
--- a/Makefile
+++ b/Makefile
@@ -908,8 +908,9 @@ webpack: $(WEBPACK_DEST)
$(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) package-lock.json
@$(MAKE) -s node-check node_modules
- rm -rf $(WEBPACK_DEST_ENTRIES)
- npx webpack
+ @rm -rf $(WEBPACK_DEST_ENTRIES)
+ @echo "Running webpack..."
+ @BROWSERSLIST_IGNORE_OLD_DATA=true npx webpack
@touch $(WEBPACK_DEST)
.PHONY: svg