USWDS-Compile - Feature: Flag to stop on errors #62
Labels
Affects: Compiling
Related to compiling Sass or JavaScript
Role: Dev
Development/engineering skills needed
Type: Feature Request
New functionality
Type: Spike
A short research activity to help make a decision
Is your feature request related to a problem? Please describe.
With #5334 I ran into an issue with Sass not compiling. I would have expected the Gulp task to fail, but it didn't.
I run the Sass compilation within a CI/CD process but because the gulp task did not error, it allowed the update to pass.
Is there a way emit an error if the Sass compiling, or other tasks, fail?
Not sure if this is a feature request or just a support/documentation request.
Describe the solution you'd like
A way to catch errors in the Gulp tasks so they can be acted upon.
Describe alternatives you've considered
Writing a custom Gulp Sass compiling task, but that adds a maintenance burden that my client may not be comfortable taking on. It also negates one of the main reasons for using this project for our build process.
Additional context
From what I can tell the
buildSass
task only emits anend
event, not anerror
.Code of Conduct
The text was updated successfully, but these errors were encountered: