Skip to content

Commit

Permalink
fix(build): Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
blavenie committed Sep 11, 2023
1 parent cacf5f6 commit 4f862a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ const uglifyBaseOptions = {
max_line_len: 120000
}
};
const cleanCssOptions = {
specialComments: 0 // new name of 'keepSpecialComments', since 4.0
}
const debugBaseOptions = {
title: 'Processing',
minimal: true,
Expand Down Expand Up @@ -134,9 +137,7 @@ function appSass() {
maxImageSize: 14 * 1024
}))
.pipe(gulp.dest('./www/css/'))
.pipe(cleanCss({
keepSpecialComments: 0
}))
.pipe(cleanCss(cleanCssOptions))
.pipe(rename({ extname: '.min.css' }))
.pipe(gulp.dest('./www/css/'));
}
Expand Down Expand Up @@ -365,9 +366,7 @@ function pluginSass() {
deleteAfterEncoding: false
}))
.pipe(gulp.dest('./www/css/'))
.pipe(cleanCss({
keepSpecialComments: 0
}))
.pipe(cleanCss(cleanCssOptions))
.pipe(rename({ extname: '.min.css' }))
.pipe(gulp.dest('./www/css/'))
);
Expand Down

0 comments on commit 4f862a6

Please sign in to comment.