I\'ve been trying to figure out how to write a npm script that will culminate with the application being launched in the user\'s browser without them having to
If You use Webpack There is another way to do this using the webpack-dev-server
npm install webpack-dev-server --save-dev Then run webpack-dev-server or configure npm script like this :
"start": "webpack-dev-server"
Then navigate to http://localhost:8080
It serve per default files in the current directory. If you want to serve files from another directory you need to use the --content-base option like this:
webpack-dev-server --content-base thefolderyouwanttoserve/
More about webpack-dev-server here in the official webpack doc.