mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-23 09:26:51 -05:00
fix gulp build version replacement
This commit is contained in:
parent
9ccc0288fc
commit
faf6bec864
1 changed files with 2 additions and 2 deletions
|
@ -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 } }));
|
||||
|
|
Loading…
Reference in a new issue