mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(build): make ionic-angular.js have proper banner
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user