Skip to content

Commit bd05ad2

Browse files
committed
add header to minified
1 parent d977fb4 commit bd05ad2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gulpfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ gulp.task('styles', () => {
5151
.pipe(cleanCss({
5252
compatibility: 'ie8'
5353
}))
54+
.pipe(header(banner))
5455
.pipe(rename({
5556
suffix: '.min'
5657
}))
@@ -69,11 +70,13 @@ gulp.task('jquery-wrapper', () => {
6970
.bundle()
7071
.pipe(source('jquery.slotmachine.js'))
7172
.pipe(buffer())
73+
.pipe(header(banner))
7274
.pipe(gulp.dest('dist'))
7375
.pipe(rename({
7476
suffix: '.min'
7577
}))
7678
.pipe(uglify().on('error', console.error))
79+
.pipe(header(banner))
7780
.pipe(connect.reload())
7881
.pipe(gulp.dest('dist'));
7982
});
@@ -97,6 +100,7 @@ gulp.task('scripts', ['lint', 'jquery-wrapper'], () => {
97100
suffix: '.min'
98101
}))
99102
.pipe(uglify().on('error', console.error))
103+
.pipe(header(banner))
100104
.pipe(connect.reload())
101105
.pipe(gulp.dest('dist'));
102106
});

0 commit comments

Comments
 (0)