Socket
Socket
Sign inDemoInstall

@lmc-eu/browserslist-config

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lmc-eu/browserslist-config

LMC's config for Browserslist


Version published
Maintainers
1
Created

Readme

Source

@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:

  • browserslist-ga-export — create a custom report in GA and export it to CSV,
  • browserslist-ga — easier if you are OK with providing your Google password to a third-party tool.

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.

Keywords

FAQs

Last updated on 06 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc