New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should default to index.html, or show an error #1797
Comments
Parcel currently looks at the main in pkg.json if using parcel. We could however do a glob for index and use the first one it finds. Downside of this is it's pretty unpredictable. If you'd add a CSS file named index in the same folder it would bundle that instead of HTML |
I suggest just erroring if there's no explicit "instructions" either on the command line or through pkg.json (which i have never had). The situation where I do have index.html but I just run "parcel" with no arguments, and it /looks/ like it has started up, but kinda is not doing what I want, it sorta too confusing of a ux in my mind. |
An error message seems like a good idea |
Hi, I can look into this |
@rajikaimal great, let us know if you need any guidance or help :) |
Can you mention where the logic related to finding the main script in pkg.json resides? |
Hope this creates the intended behavior :) |
🙋 feature request
🤔 Expected Behavior
parcel should default to using index.html, or error out.
😯 Current Behavior
Expected
either
or
The text was updated successfully, but these errors were encountered: