0.1.2 • Published 4 years ago
@chipzhang/browserslist-config v0.1.2
A Browserslist shareable config featuring separate configs of development and production
Overview
For development
If NODE_ENV or BROWSERSLIST_ENV is development,
the effective browser queries are the last 2 versions of Chrome, Firefox, Safari and Firefox ESR,
thus speeding up compiling speed (if using babel for example), used for developing features.
For production
If NODE_ENV or BROWSERSLIST_ENV is production,
the effective browser queries will include old browsers, used for testing browser compatibility.
Usage
- First, install this package as a development dependency. Note this package will not install
browserslistautomatically.
npm i -D browserslist @chipzhang/browserslist-configAdd
["extends @chipzhang/browserslist-config"]to yourpackage.jsonfile.You can add more browser queries in your
package.jsonfile.
More info
You can check both browsers and Node.js compatibility at link, link.
You can check browsers compatibility at link.
You can check Node.js compatibility at link.
License
GNU AFFERO GENERAL PUBLIC LICENSE Version 3