Skip to content

Instantly share code, notes, and snippets.

@tripdog
Last active June 12, 2021 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripdog/caff6482c673ca300efbfe5b0bc21e4d to your computer and use it in GitHub Desktop.
Save tripdog/caff6482c673ca300efbfe5b0bc21e4d to your computer and use it in GitHub Desktop.
Add a start script to your package.json file to run parcel watch and browser-sync so you don't have to remember to do it.

Add Scripts To Package dot JSON To Run Parcel Watch and Browser-Sync

{
"scripts": {
    "start": "parcel watch app.js & browser-sync start --server --files '.'",
    "watch": "parcel watch app.js",
    "sync": "browser-sync start --server --files '.'"
  }
}
  • credit to zulvkr for this gist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment