Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build webpack on heroku?

Tags:

webpack

heroku

What is the best way to trigger Webpack build after deploying to Heroku?

Push already bundled version in not the most beautiful solution.

like image 219
grechut Avatar asked Dec 01 '14 22:12

grechut


People also ask

How do I deploy a Heroku react app?

To deploy React app on Heroku, we need to add buildpacks. Click on the Settings tab and then click on Add buildpack button inside the Buildpacks section. Our React buildpack URL is https://github.com/mars/create-react-app-buildpack. Copy this URL and add it to buildpack like below.

Does Heroku support node JS?

Heroku Node. js support will only be applied when the application has a package. json file in the root directory.


1 Answers

What kind of application is this? If you are using a package.json, you could run webpack in the postinstall step using npm scripts.

like image 55
Jeff Ling Avatar answered Oct 23 '22 06:10

Jeff Ling