Skip to content

Commit

Permalink
fix gulp build version replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 3, 2016
1 parent 9ccc028 commit faf6bec
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 @@ -250,14 +250,14 @@ var build = function(options) {
gutil.log('Building', filename, options.date);

var compiled = gulp.src(['src/module/main.js'])
.pipe(replace('@@VERSION@@', options.version))
.pipe(through2.obj(function(file, enc, next){
browserify(file.path, { standalone: 'Matter' })
.bundle(function(err, res){
file.contents = res;
next(null, file);
});
}));
}))
.pipe(replace('@@VERSION@@', options.version));

if (options.version.indexOf('-dev') === -1) {
compiled.pipe(preprocess({ context: { DEBUG: false } }));
Expand Down

0 comments on commit faf6bec

Please sign in to comment.