Skip to content

Commit 224c48e

Browse files
GiteaBotsilverwind
andauthored
Suppress browserslist warning in webpack target (#30571) (#30727)
Backport #30571 by @silverwind 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 ``` Co-authored-by: silverwind <[email protected]>
1 parent 7aba99a commit 224c48e

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)