Hosting a production React app built with Wepback on Heroku

前端 未结 2 1602
清酒与你
清酒与你 2020-11-27 08:22

Every time I push to heroku it simply says \"Not Found\". I am assuming it is because webpack doesn\'t run?

I\'ve tried all sorts of scripts:

\"scrip         


        
2条回答
  •  佛祖请我去吃肉
    2020-11-27 09:00

    You need to put webpack (as well as any other dependencies that you need on Heroku) under "dependencies" in your package.json, not under "devDependencies".

提交回复
热议问题