Skip to content

Commit 60a96e2

Browse files
silverwindGiteaBot
authored andcommitted
Suppress browserslist warning in webpack target (go-gitea#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 ```
1 parent c5f37af commit 60a96e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,8 +959,9 @@ webpack: $(WEBPACK_DEST)
959959

960960
$(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) package-lock.json
961961
@$(MAKE) -s node-check node_modules
962-
rm -rf $(WEBPACK_DEST_ENTRIES)
963-
npx webpack
962+
@rm -rf $(WEBPACK_DEST_ENTRIES)
963+
@echo "Running webpack..."
964+
@BROWSERSLIST_IGNORE_OLD_DATA=true npx webpack
964965
@touch $(WEBPACK_DEST)
965966

966967
.PHONY: svg

0 commit comments

Comments
 (0)