Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.23 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.23 KB

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 browserslist automatically.
npm i -D browserslist @chipzhang/browserslist-config
  • Add ["extends @chipzhang/browserslist-config"] to your package.json file.

  • You can add more browser queries in your package.json file.

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