Skip to content

Commit 02e76d4

Browse files
author
Slinto
committed
Minify CSS moved to stylus task
1 parent 82777f2 commit 02e76d4

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

gulpfile.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ gulp.task('image-copy', function() {
5656
.pipe(gulp.dest('./build/img'));
5757
});
5858

59-
gulp.task('minify-css', function() {
60-
return gulp.src(paths.css)
61-
.pipe(minifyCSS())
62-
.pipe(gulp.dest('./build/css'));
63-
});
64-
6559
gulp.task('stylus', function() {
6660
return gulp.src(paths.stylus)
6761
.pipe(plumber())
@@ -71,6 +65,7 @@ gulp.task('stylus', function() {
7165
'include css': true
7266
}))
7367
.pipe(autoprefixer(['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1', 'ie 8', 'ie 9']))
68+
.pipe(minifyCSS())
7469
.pipe(size({
7570
showFiles: true
7671
}))
@@ -138,17 +133,17 @@ gulp.task('bump', function() {
138133
.pipe(gulp.dest('./'));
139134
});
140135

141-
gulp.task('dev', ['stylus', 'minify-css', 'test']);
136+
gulp.task('dev', ['stylus', 'test']);
142137

143138
gulp.task('build', function() {
144-
runSequence('clean', 'stylus', 'minify-css', 'test', 'webpack', 'imagemin');
139+
runSequence('clean', 'stylus', 'test', 'webpack', 'imagemin');
145140
});
146141

147142
gulp.task('release', function() {
148143
VERSION = args.v || args.version;
149144

150145
if (typeof VERSION !== 'undefined') {
151-
runSequence('clean', 'stylus', 'minify-css', 'test', 'webpack', 'imagemin', 'bump', 'git-commit', 'git-push');
146+
runSequence('clean', 'stylus', 'test', 'webpack', 'imagemin', 'bump', 'git-commit', 'git-push');
152147
} else {
153148
console.log('SORRY, app --version parameter missing.');
154149
}

0 commit comments

Comments
 (0)