Back

Laravel people, to build assets locally and then commit them, OR have the CI pipeline build it?

Which one do you prefer and why?

6

337

  • No matching results...
  • Searching...

/ 1000

I build on the server itself. I do not know how others do it.

37

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.

31

I generate the assets in a job in the CI pipeline. I have never had any problems with this.

77

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.

109