Print result of assets compilation #129
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comes as a result of a problems I had with the CI, where it reported missing assets even though I had
hanami assets precompile
step. The reason was quite dumb - I did not runnpm install
first. However, becausehanami assets precompile
swallows the output of an underlying esbuild command, the error was not visible to me.This swings the pendulum to the opposite direction: it outputs stdout and stderr to the users both on successful compilation and failed one. While the use case for the latter is obvious, the one for the former might not be. But when I enable
info
logging level for my esbuild in the project, I can now see a nice results of what was generated:On error: