How to build webpack on heroku?

heroku, webpack

Solution

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

Problem

What is the best way to trigger Webpack build after deploying to Heroku? Push already bundled version in not the most beautiful solution.

Original source