From 1130f60902e7088e856fd67a34d4d39987c301fc Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Sat, 8 Mar 2014 11:33:52 -0700 Subject: [PATCH] chore(build): make ionic-angular.js have proper banner --- gulpfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8198165626b..aba64a56c66 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -59,6 +59,7 @@ gulp.task('bundle', [ IS_RELEASE_BUILD && gulp.src(buildConfig.ionicBundleFiles.map(function(src) { return src.replace(/.js$/, '.min.js'); })) + .pipe(header(buildConfig.bundleBanner)) .pipe(header(buildConfig.bundleBanner)) .pipe(concat('ionic.bundle.min.js')) .pipe(gulp.dest(buildConfig.distJs)); @@ -107,11 +108,11 @@ gulp.task('scripts', function() { gulp.task('scripts-ng', function() { return gulp.src(buildConfig.angularIonicFiles) + .pipe(gulpif(IS_RELEASE_BUILD, stripDebug())) .pipe(concat('ionic-angular.js')) - .pipe(gulpif(IS_RELEASE_BUILD, uglify())) .pipe(header(banner)) .pipe(gulp.dest(buildConfig.distJs)) - .pipe(gulpif(IS_RELEASE_BUILD, stripDebug())) + .pipe(gulpif(IS_RELEASE_BUILD, uglify())) .pipe(rename({ extname: '.min.js' })) .pipe(header(banner)) .pipe(gulp.dest(buildConfig.distJs));