Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@lmc-eu/browserslist-config

lmc-eu660BSD-3-Clause2.0.1

LMC's config for Browserslist

browserslist, browserslist-config, lmc

readme

@lmc-eu/browserslist-config

LMC’s config for Browserslist

Installation

# Yarn:
yarn add --dev @lmc-eu/browserslist-config

# npm:
npm install --save-dev @lmc-eu/browserslist-config

Usage

Add this to .browserslistrc file:

extends @lmc-eu/browserslist-config

Alternatively, add this to your package.json file:

"browserslist": [
  "extends @lmc-eu/browserslist-config"
]

Extending

To support Internet Explorer (or any other browser):

extends @lmc-eu/browserslist-config

ie # sorry!

Using Real-World Statistics

You may provide your own browser statistics.

To get the data from Google Analytics, use one of the following tools:

Make the resulting file available to Browserslist by saving it right next to your .browserslistrc (or package.json, wherever you store your config):

# Project root

- .browserslistrc
- browserslist-stats.json
- package.json
- 

As mentioned in the stats file in your Browserslist configuration:

extends @lmc-eu/browserslist-config

> 0.5% in my stats

For more configuration examples including Autoprefixer, Babel, ESLint, PostCSS, and Stylelint see Browserslist examples.

Checking Results

Anytime you can run npx browserslist in your project root to see what browsers are actually matched against your configuration.

Updating Browsers Database

You should run npx browserslist@latest --update-db every few months to update the caniuse database in the background, so you always develop for current browsers.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.0.1 (2024-08-07)

Styles

  • repo: Reformat markdown files base on remark-config (7594cd7), closes #12

Note: Version bump only for package @lmc-eu/browserslist-config

2.0.0 (2023-10-06)

BREAKING CHANGES

  • browserslist: Drop support for Node.js v14 and older (ccf0a65), closes #130

Note: Version bump only for package @lmc-eu/browserslist-config

1.0.4 (2023-01-16)

Chores

  • ci: Introduce release-sync command in Makefile (029ad33)

Styles

  • repo: Rewrite documentation using Textlint ruleset (22e19bd)

Note: Version bump only for package @lmc-eu/browserslist-config

1.0.3 (2022-03-08)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/browserslist-config

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines and LMC GitHub preset for the list of supported change types.

1.0.2 (2022-01-18)

Documentation

  • browserslist:Include changelog (d3e6794)

1.0.1 (2021-12-18)

Documentation

  • Introduce lincense and add credit to strv for inspiration (a2b5a9e)

1.0.0 (2021-07-28)

Features

  • browserslist-config: Introduce Browserslist config (a7b5e1e)