Laravel people, to build assets locally and then commit them, OR have the CI pipeline build it?
Which one do you prefer and why?
I build on the server itself. I do not know how others do it.
I still build them in the pipeline and have only had a few instances over the years where broken CSS was deployed to the server.
In a conversation with Tobias Koppers (the creator of Webpack), he strongly advised me against building on the server. Instead, he recommended building locally, verifying the results, and then deploying.
I generate the assets in a job in the CI pipeline. I have never had any problems with this.
Posted a Twitter poll for you, with my bigger audience you may have more real feedback :) x.com/PovilasKorop/status/1840448172583199169
On pre-commit hook i have added a step that makes build and run tests locally.
And on merge, with pipeline I build on the server.