Answer the question
In order to leave comments, you need to log in
How to properly configure gulp-uncss?
Hey everyone, I'm using gulp-uncss to remove unused properties in CSS.
Everything is fine, but only 2 classes are removed - visible and hidden , which are not in the html code, but they are in the js code.
How to be?
Answer the question
In order to leave comments, you need to log in
You can try like this, but to be honest, I did not check it myself:
.pipe(uncss({
ignore: ['.visible', '.hidden']
}))
/* uncss:ignore */
.selector1 {
/* this rule will be ignored */
}
.selector2 {
/* this will NOT be ignored */
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question