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.
Issue summary
The
gulpbuild tool fails to rebuild thestyle.cssandstyle.min.cssfiles in thedeveloperschild theme when either:The
gulp watchandgulp stylestasks continue to work even after a syntax error is logged to the command line. Because thestylestask 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 exportedgulp stylestask should not run until the error is resolved.