Search code examples
parceljs

How do you get parcel to open in a specific browser of my choice?


My parcel bundler opens up in default MS edge but i want it open local host in firefox.


Solution

  • Both work on Win10 and Linux Ubuntu 20.04. If you have parcel installed globally

    In your root project folder enter the command(terminal)

     parcel --open firefox index.html
    

    OR

    If you have parcel installed locally than change your package.json

    "scripts": {
        "dev": "parcel --open firefox index.html",
        "prod": "parcel build index.html"
      },
    

    And hit in terminal npm run dev You are done ! :-) Good Luck and Best regards;-)