From faf6bec86419e0b4fcf32565a7c897299f1e178c Mon Sep 17 00:00:00 2001 From: liabru Date: Thu, 3 Nov 2016 00:40:57 +0000 Subject: [PATCH] fix gulp build version replacement --- Gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 3ae1421..f455aae 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -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 } }));