An array `package.json#source` should build these specified entries.
See original GitHub issueRunning parcel build my-package/ should build a.html, b.html if my-package/package.json contains:
{
"source": ["a.html", "b.html"]
}
So be equivalent to cd my-package && parcel build a.html b.html.
The docs already say this should work: https://v2.parceljs.org/configuration/package-json/#source
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
package.json - npm Docs
This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just a...
Read more >Targets - Parcel
“Entries” are the files that Parcel starts at when building your source code. They can be specified on the CLI, or using the...
Read more >package.json - Parcel
Specify the entry points for your source code which gets mapped to your targets, can be a string or an array. package.json: {...
Read more >The Basics of Package.json - NodeSource
The repository property of a package.json is an array that defines where the source code for the module lives. Typically, this would be...
Read more >What's what? - Package.json cheatsheet! - Arek Nawo
This array of strings will make your package rank higher when your possible users will search through NPM listings by keywords that much...
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 Free
Top 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

@mischnic I’d love to pick this issue up.
You can also work on something else even before you PR is merged, if you want.