-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[RFC] Don't start dev server for non-html entry points? #1005
Comments
This is definitely not very usefull, might be a good idea to add in a check to prevent this, no need to start servers for no reason |
I can take a look. |
@lili21 Node.js should just watch and auto-recompile when doing anything but build imo. |
@DeMoorJasper Actually, maybe we should just not start the dev server for ANY non-html entry points, regardless of the target. So if I run |
@davidnagli that’s actually a good point, as far as I know you’re right Sent with GitHawk |
#935 is a duplicate (but also talks about electron)? |
|
Hi, after a lot of trial and error I found this issue here. The below worked till 1.7.1 but with the next release of 1.8.0 it didn't (incl the current 1.9.7). Reason, the dev server did not get launched anymore for the
I am not familiar about all the internals of Parcel but, should the patch not be more like:
With that modification it works as expected. Is the possible solution of @rkpatel33 (btw. thanks for those documented trial and error cases. It made me feel not alone!) to make use of the API the only way now? It seems a bit bloated for something what could be a single command? |
Currently, when you run parcel with
--target
set tonode
, it starts a static dev server on port:1234
. This doesn't really make sense for Node bundling, since we don't expect the code to run in the browser.Is anybody opposed to disabling the dev server for node bundling?
The text was updated successfully, but these errors were encountered: