Skip to content

Commit cbb120c

Browse files
committed
Merge pull request #13 from progrape/master
optimize build script
2 parents f0c048e + 3da3ae2 commit cbb120c

File tree

5 files changed

+5
-14
lines changed

5 files changed

+5
-14
lines changed

dist/swiper.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* iswiper - swiper.js
33
* @version v1.4.1
44
* @link https://github.com/weui/swiper.git

dist/swiper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* iswiper - swiper.js
33
* @version v1.4.1
44
* @link https://github.com/weui/swiper.git

dist/swiper.min.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/**
1+
/*!
22
* iswiper - swiper.js
33
* @version v1.4.1
44
* @link https://github.com/weui/swiper.git
55
* @license MIT
6-
*/
7-
.item,.swiper{height:100%;overflow:hidden}.swiper{-webkit-transition:all .3s ease;transition:all .3s ease}.item{background-position:center center;background-size:cover;position:relative;float:left}.item.active .animated{-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.item:not(.active) .animated{-webkit-animation:none;animation:none;opacity:0}
6+
*/.item,.swiper{height:100%;overflow:hidden}.swiper{-webkit-transition:all .3s ease;transition:all .3s ease}.item{background-position:center center;background-size:cover;position:relative;float:left}.item.active .animated{-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.item:not(.active) .animated{-webkit-animation:none;animation:none;opacity:0}

dist/swiper.min.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ gulp.task('build', function () {
2020
gulp.src('src/example/**/*')
2121
.pipe(gulp.dest('dist/example'));
2222

23-
var banner = ['/**',
23+
var banner = ['/*!',
2424
' * <%= pkg.name %> - <%= pkg.description %>',
2525
' * @version v<%= pkg.version %>',
2626
' * @link <%= pkg.repository.url %>',
@@ -37,7 +37,6 @@ gulp.task('build', function () {
3737
.pipe(header(banner, { pkg : pkg } ))
3838
.pipe(gulp.dest('dist'))
3939
.pipe(minify())
40-
.pipe(header(banner, { pkg : pkg } ))
4140
.pipe(rename(function (file){
4241
file.basename += '.min';
4342
}))
@@ -54,7 +53,6 @@ gulp.task('build', function () {
5453
.pipe(header(banner, { pkg : pkg } ))
5554
.pipe(gulp.dest('dist'))
5655
.pipe(uglify())
57-
.pipe(header(banner, { pkg : pkg } ))
5856
.pipe(rename(function (file){
5957
file.basename += '.min';
6058
}))

0 commit comments

Comments
 (0)