Skip to content

Commit

Permalink
Resolves file copy process
Browse files Browse the repository at this point in the history
The promises is only resolved when using http to get CSS file

Local css file needs to be resolved after finished copying
  • Loading branch information
fin-digbil committed Nov 4, 2014
1 parent 7180fe5 commit 3efcf33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/patternprimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ module.exports = function(grunt) {
.on('err', deferred.reject);
} else {
grunt.file.copy('./' + settings.wwwroot + '/' + file, './' + settings.dest + '/' + file);
deferred.resolve();
}
});

Expand Down Expand Up @@ -258,4 +259,4 @@ module.exports = function(grunt) {

grunt.registerMultiTask('patternprimer', patternprimer);
return patternprimer;
};
};

0 comments on commit 3efcf33

Please sign in to comment.