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.
If NODE_ENV
or BROWSERSLIST_ENV
is production
,
the effective browser queries will include old browsers, used for testing browser compatibility.
- First, install this package as a development dependency. Note this package will not install
browserslist
automatically.
npm i -D browserslist @chipzhang/browserslist-config
-
Add
["extends @chipzhang/browserslist-config"]
to yourpackage.json
file. -
You can add more browser queries in your
package.json
file.
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.
GNU AFFERO GENERAL PUBLIC LICENSE Version 3