N
N
Nik_10112021-08-30 04:24:04
gulp.js
Nik_1011, 2021-08-30 04:24:04

How to configure gulp cleancss so that it doesn't remove the "*" asterisk?

Hello.

When compiling, gulp overwrites the css "*" asterisk element, how can I prevent it from doing this?
Here is the code

function stylesCss() {
  return src(paths.styles.srcStyles)
    .pipe(eval(preprocessor)())
    .pipe(concat(paths.cssStylesOutputName))
    .pipe(autoprefixer({
      overrideBrowserslist: ['last 10 versions'],
      grid: true
    }))
    .pipe(cleancss({
      level: {
        1: {
          specialComments: 'all'
        }
      },
      /*format: 'beautify' */
    }))
    .pipe(dest(paths.styles.dest))
    .pipe(browserSync.stream())
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question