diff --git a/gulpfile.js b/gulpfile.js
index a53352c26229913f42c866df26e10b665453d21a..21c97e4c9004d1c40647a818bc7c9f838d07e638 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/'))
   );