From 4f862a6ce233a28cce762fb67236370c5024c969 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Mon, 11 Sep 2023 17:36:55 +0200 Subject: [PATCH] fix(build): Minor changes --- gulpfile.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index a53352c2..21c97e4c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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, @@ -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/')); } @@ -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/')) ); -- GitLab