Stop bundler after bundling #4664
-
Hi,
This is the code with which I'm doing the testing
On the API section of Parcel's documentation I didn't find any function of the bundler that lets me stop it, can somebody help me? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you're not running with To fix this, just add |
Beta Was this translation helpful? Give feedback.
If you're not running with
NODE_ENV
set to'production'
, Parcel defaults to watching the files for changes and rebuilding on change, so it won't ever terminate on its own.To fix this, just add
watch: false
in options or (preferably, since it seems you are building in production anyway) setNODE_ENV
to'production'
.