Closed
Description
Current behavior
When netlify-lambda build
has an error (due to an error from webpack), we end up with a deployment on Netlify with no functions (functions dir empty due to webpack build failing).
Expected behavior
The whole deploy should fail.
Reproduction
Create a simple function that doesn't build (e.g. syntax error or whatever) and deploy through Netlify CI/CD.
Proposed solution
Add bail: true
to the webpack configuration e.g. here:
Line 111 in 7ab1220
This is what I have done myself via the custom webpack config option, but I think it would be a pretty sensible default to have! 🙂
Metadata
Metadata
Assignees
Labels
No labels