Skip to content

gulp continues to run exported styles task even after a syntax error is logged to the command line #53

@rgadon107

Description

@rgadon107

Issue summary

The gulp build tool fails to rebuild the style.css and style.min.css files in the developers child theme when either:

  • a syntax error occurs in the SASS partial files; or
  • a variable is not properly registered elsewhere (e.g. font-size, color).

The gulp watch and gulp styles tasks continue to work even after a syntax error is logged to the command line. Because the styles task takes up many lines on the command line, the syntax error is easily overlooked when the Terminal view is kept small.

PHPStorm renders a file error, which provided the tip off that the child theme's CSS was not being built from the SASS partial file.

Recommendation

When function sassToCSS() in '/wp-content/themes/developers/dev/gulpfile.js/styles.js' encounters a syntax error, execution of the function should stop, return a sound, and log the error. The exported gulp styles task should not run until the error is resolved.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions