Use `main` field as default `path`
See original GitHub issueInstead of need to set the path where size-limit
will start to process files, use the package.json
file main
field (if missing, it’s default value index.js
) as default value to be used. I think it can be a good sane default and don’t require to config size-limit
, or maybe also to install it globally and just do some checking in random modules without need to modify them to add the config entry…
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to enter folder path into New Custom Field Default Value?
I am trying to make a custom text field and set the default value for it to a folder path on the C...
Read more >How do I change the default location for Git Bash on Windows?
The easiest way without installing msysgit is right click on the Git Bash shortcut icon → Start in: → "C:\Program Files (x86)".
Read more >package.json - npm Docs
The main field is a module ID that is the primary entry point to your program. That is, if your package is named...
Read more >Edit Default Settings for Fields - Tableau Help
To set the default sort order, right-click (control-click on a Mac) a dimension and select Default Properties > Sort. Then use the sort...
Read more >path for Jenkins projects when the relative path is specified for ...
The default path for any Jenkins project is relative to the workspace project folder. The following table defines the default path for a ......
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
If you don’t have time, I will find another developer to do it, it is not a problem (your idea is good, that is the main step here)
Thank you! 😃