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.

[Feature Request:] add support for config file name => browserslist.config.js

See original GitHub issue

Hi,

Configuration name *.config.js seems to be the most default/common value for most of majors libraries:

  • webpack.config.js
  • babel.config.js
  • stylelint.config.js
  • postcss.config.js
  • prettier.config.js
  • vue.config.js
  • nuxt.config.js
  • tailwind.config.js
  • jest.config.js

I see only too libraries that doesn’t support this format:

It could be nice for Browserlist to offer this option.

Following this convention will definitively help users. Having a consistent way to configure libraries would be easier and cleaner.

Just my two cents to make our life a little easier 😄 !

Cheers!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
aicommented, Jan 26, 2020

@amilajack you can try to use sharable configs to have dynamic JS code

1reaction
jimbluecommented, Jun 16, 2019

Anyway @ai, if it doesn’t make sens for Browserlist team we can just close this. I don’t want to argue for ages, but thanks for this good talk!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 12 warns about requested IE 11 support. Why?
It's because of the missing browserslist config in your project. If the Angular CLI compiler doesn't find a .browserslistrc file or a ...
Read more >
Manual Page - GoAccess
NAME. goaccess - Fast web log analyzer and interactive viewer. ... Features include: ... Additional static files can be added to the configuration...
Read more >
Configuration | Stylelint
stylelintrc file (without extension) can be in JSON or YAML format. You can add a filename extension to help your text editor provide...
Read more >
Speed up with Browserslist - DEV Community ‍ ‍
By default, if there is no config in the project, Browserslist will use default browsers. This query is an alias for > 0.5%,...
Read more >
CSS - Parcel
You can use PostCSS with Parcel by creating a configuration file using one of these names: .postcssrc , .postcssrc.json , .postcssrc.js , or...
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