Skip to content

Commit

Permalink
Patch audio command
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Surabian committed Dec 4, 2020
1 parent a43152b commit edbb71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var glob = require('glob');
var shell = require('gulp-shell');
var fs = require('fs');

gulp.task('audio', gulp.parallel(function() {
gulp.task('audio', gulp.parallel(function(cb) {
var files = glob.sync('./src/assets/sounds/*.mp3');
var outputPath = './dist/audio';
var opts = {
Expand All @@ -20,7 +20,7 @@ gulp.task('audio', gulp.parallel(function() {
console.error(err);
}

return fs.writeFile('./dist/audio' + '.json', JSON.stringify(obj, null, 2));
return fs.writeFile('./dist/audio' + '.json', JSON.stringify(obj, null, 2), cb);
});
}));

Expand Down

0 comments on commit edbb71e

Please sign in to comment.