How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?

后端 未结 13 1176
时光取名叫无心
时光取名叫无心 2020-11-30 17:36

I am new to the whole nodejs/reactjs world so apologies if my question sounds silly. So I am playing around with reactabular.js.

Wh

相关标签:
13条回答
  • 2020-11-30 18:05

    For me, this code worked. Just add it on your package.json file :

    "scripts": {
        "dev-server": "encore dev-server",
        "dev": "webpack-dev-server --progress --colors",
        "watch": "encore dev --watch",
        "build": "encore production --progress"
    },
    

    And run the script "build" by running npm run build

    0 讨论(0)
提交回复
热议问题