0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-24 13:29:01 -05:00

fix gulp build version replacement

This commit is contained in:
liabru 2016-11-03 00:40:57 +00:00
parent 9ccc0288fc
commit faf6bec864

View file

@ -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 } }));