Skip to content

Commit eef5a2f

Browse files
committed
Update update-db docs
1 parent 7e019ce commit eef5a2f

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ Others:
115115

116116
* [`browserslist-rs`] is a Browserslist port to Rust.
117117
* [`browserslist-update-action`] is a GitHub Action to automatically
118-
runs `npx browserslist@latest --update-db` and proposes a pull request
119-
to merge updates.
118+
runs `update-browserslist-db` and proposes a pull request to merge updates.
120119
* [`browserslist-browserstack`] runs BrowserStack tests for all browsers
121120
in Browserslist config.
122121

@@ -171,20 +170,7 @@ These extensions will add syntax highlighting for `.browserslistrc` files.
171170

172171
## Browsers Data Updating
173172

174-
`npx browserslist@latest --update-db` updates `caniuse-lite` version
175-
in your npm, yarn or pnpm lock file. This update will bring data about
176-
new browsers to polyfills tools like Autoprefixer or Babel and reduce
177-
already unnecessary polyfills.
178-
179-
You need to do it regularly for three reasons:
180-
181-
1. To use the latest browser’s versions and statistics in queries like
182-
`last 2 versions` or `>1%`. For example, if you created your project
183-
2 years ago and did not update your dependencies, `last 1 version`
184-
will return 2 year old browsers.
185-
2. Actual browsers data will lead to using less polyfills. It will reduce
186-
size of JS and CSS files and improve website performance.
187-
3. `caniuse-lite` deduplication: to synchronize version in different tools.
173+
See [`update-browserslist-db` docs](https://github.com/browserslist/update-db#readme)
188174

189175

190176
## Queries

node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ module.exports = {
382382
'Browserslist: caniuse-lite is outdated. Please run:\n' +
383383
' npx update-browserslist-db@latest\n' +
384384
' Why you should do it regularly: ' +
385-
'https://github.com/browserslist/browserslist#browsers-data-updating'
385+
'https://github.com/browserslist/update-db#readme'
386386
)
387387
}
388388
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy