]> source.dussan.org Git - gitea.git/commit
Suppress browserslist warning in webpack target (#30571) (#30727)
authorGiteabot <teabot@gitea.io>
Sat, 27 Apr 2024 14:06:06 +0000 (22:06 +0800)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 14:06:06 +0000 (22:06 +0800)
commit224c48e16b58d760c59c47e0bbf951f1b8913234
tree63101a1836a78116710dd71c0cea76bca6f391d5
parent7aba99af5e37ffaa78b33e8db2485d7a5be2ee85
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 <me@silverwind.io>
Makefile