Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question