Different configs using .browserslistrc
See original GitHub issueWhen 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:
- Created 4 years ago
- Reactions:4
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/browserslist/browserslist/blob/master/README.md#environments
How we can improve docs to make it more discoverable?
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?