https://github.com/dvrpc/browserslist-config
Custom browserslist stats for DVRPC
https://github.com/dvrpc/browserslist-config
Last synced: 5 months ago
JSON representation
Custom browserslist stats for DVRPC
- Host: GitHub
- URL: https://github.com/dvrpc/browserslist-config
- Owner: dvrpc
- Created: 2018-01-11T02:26:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T21:14:49.000Z (over 8 years ago)
- Last Synced: 2025-03-17T22:13:37.557Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# browserslist-config
```shell
npm i --save-dev @dvrpc/browserslist
```
Add to `package.json`:
```json
"browerslist": [
"extends @dvrpc/browserslist-config"
]
```
Check regularly for updates using `npm outdated` and `npm update`
## Update Procedure
See: https://github.com/ai/browserslist#custom-usage-data
1. Import your Google Analytics data into Can I Use. Press Import… button in Settings page.
2. Open browser DevTools on Can I Use and paste this snippet into the browser console:
```js
var e=document.createElement('a');e.setAttribute('href', 'data:text/plain;charset=utf-8,'+encodeURIComponent(JSON.stringify(JSON.parse(localStorage['usage-data-by-id'])[localStorage['config-primary_usage']])));e.setAttribute('download','stats.json');document.body.appendChild(e);e.click();document.body.removeChild(e);
```
3. Commit stats.json file in this project.
4. Bump version to 1.YY.M [year, month] and publish to npm