question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different configs using .browserslistrc

See original GitHub issue

When I use create-react-app, it generates a package.json for me with the following browserslist config

  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }

If I want to move this to the .browserlistrc file, how can I specify two different arrays? Its not shown in the documentation, which says this:

# Browsers that we support

last 1 version
> 1%
maintained node versions
not dead

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
aicommented, Jun 26, 2019
[production]
> 1%
ie 10

[modern]
last 1 chrome version
last 1 firefox version

https://github.com/browserslist/browserslist/blob/master/README.md#environments

How we can improve docs to make it more discoverable?

1reaction
aicommented, Jun 26, 2019

Table of contents is a good idea. I will open an issue until I will add TOC.

Do you want to send PR to save your name in project’s history?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Speed up with Browserslist - DEV Community ‍ ‍
Today we have a large number of different browsers and even more versions ... By default, if there is no config in the...
Read more >
How to create a custom .browserlistrc for babel-preset-env
Let's look into how your custom config differs from the generic config. How do I know which browsers my config will support? When...
Read more >
Different browserlist for dev and prod? - Stack Overflow
If I understand you correctly, then changing the build config in your angular.json should do the trick. You can just copy what Angular...
Read more >
Browser configuration | webhint documentation
browserslistrc . If you need to configure browsers for webhint without affecting other tools, you can specify a browserslist property in your .hintrc ......
Read more >
browserslist - npm
... by running `npm i browserslist`. There are 2097 other projects in the npm registry using browserslist. ... Or in .browserslistrc config:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found