Webpack launch browser automatically

前端 未结 9 1110
遥遥无期
遥遥无期 2021-02-03 17:18

Gulp + live reload serves up my content on localhost and (here\'s what I\'m after) launches the browser automatically at the server url whenever i run the gulp

9条回答
  •  眼角桃花
    2021-02-03 17:57

    Emelet answer is not false at all, however it won't work in Windows. I do this with:

    "scripts": {
        "start": "start http://localhost:8000/ & webpack-dev-server"
    }
    

    100% working and you don't have to install any module or plugin.

提交回复
热议问题