Skip to content

Commit

Permalink
Fix issues when compiling assets installed with Bower
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Oct 7, 2015
1 parent 667d07c commit 35189cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Resources/blueprints/pipelines/gulp/gulpfile.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,11 @@
* it throws if the bower_components/ directory does not exist.
*/
var bower = function() {
return require('gulp-main-bower-files')(function(error) {
if (!error.toString().match(/^Error: Bower components directory does not exist/)) {
return require('gulp-main-bower-files')({
bowerJson: config.vendor.bowerFile,
bowerDirectory: config.vendor.bowerComponents
}, function(error) {
if (error && !error.toString().match(/^Error: Bower components directory does not exist/)) {
util.log(error);
}
});
Expand Down

0 comments on commit 35189cf

Please sign in to comment.