简体   繁体   中英

Minifying css classes and ids

I want to find some way of automatically minifying classes and ids in a .html-file. The file is created through a series of gulp commands. I've tried the command line application Munch, but it ruins the file since it removes doctype and important comments that I have. Does anyone have any tip on how to do this? The best option would of course be something like this:

.pipe(minifyClassesAndIds({ignoreclasses: ['.this', '.that']})

I hope you understand what I mean.

The only working tool I know is a HTML Muncher .
But, unfortunately now it doesn't work very well and have much of issues.

UPD. Don't sure about which munch you are talking about, is it the same as HTML Muncher?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM