Parcel: Difference between "parcel" and "parcel watch"

Created on 22 Nov 2019  路  2Comments  路  Source: parcel-bundler/parcel

What is the actual difference between running yarn parcel index.html and yarn parcel watch index.html? Are they just alias?

Question

All 2 comments

parcel index.html is the same as parcel serve index.html: it starts a dev server and rebuilds the files on changes.

parcel watch.html rebuilds the files on changes into the dist folder without the server.

parcel watch = parcel build + automatic rebuild
parcel = parcel serve = parcel watch + dev server

Thanks @mischnic !

Was this page helpful?
0 / 5 - 0 ratings