Browse Source

add error catching to css build

Artur Paikin 7 years ago
parent
commit
1eb235ace0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bin/build-css.js

+ 3 - 0
bin/build-css.js

@@ -29,6 +29,7 @@ function minifyCSS () {
             resolve()
           })
         })
+        .catch(err => handleErr(err))
     })
   })
 }
@@ -49,6 +50,7 @@ function compileCSS () {
             resolve()
           })
         })
+        .catch(err => handleErr(err))
     })
   })
 }
@@ -58,3 +60,4 @@ compileCSS()
   .then(function () {
     console.info(chalk.yellow('✓ CSS Bundle 🎉'))
   })
+  .catch(err => handleErr(err))