I’m curious when is the ideal time to run a build process. Right now I’m running it on the master branch of the git repo before deploying the changes to the live server. This is less than ideal though, because I have to deal with merge conflicts every time I deploy. Also this won’t work well on projects with multiple contributors.
I considered running the build process on the server, but this not always an option.(shared hosting, third-party hosting like shopify, etc…)
Is there a better way to handle the build process?
My current setup has a development branch which all the feature branches are merged into. This branch has no minification so I can easily debug any issues I run into. The development branch is merged into the master and then on the master branch I run the build process so I can deploy the distribution version of the project. The build process is pretty much just minifying my css and javascript with a few other small things on top of that.