Skip to content

ChipZhang/browserslist-config

Repository files navigation

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

About

A Browserslist shareable config featuring separate configs of development and production

Resources

License

Stars

Watchers

Forks

Packages

No packages published