increase clean-css level & remove unwanted files

This commit is contained in:
amphineko 2018-11-17 02:28:08 +08:00
parent 032b84a552
commit 69f0d2b78e
2 changed files with 3 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,9 @@ gulp.task('stylesheet', function () {
.pipe(sass().on('error', sass.logError)) .pipe(sass().on('error', sass.logError))
.pipe(rename('index.bundle.css')) .pipe(rename('index.bundle.css'))
.pipe(gulp.dest('./assets/stylesheets/')) .pipe(gulp.dest('./assets/stylesheets/'))
.pipe(cleanCss()) .pipe(cleanCss({
level: 2
}))
.pipe(rename('index.bundle.min.css')) .pipe(rename('index.bundle.min.css'))
.pipe(gulp.dest('./assets/stylesheets/')) .pipe(gulp.dest('./assets/stylesheets/'))
}) })