An efficient way to merge 2 large CSS files
16,598
Try
CSS Compressor & Minifier
It have lots of options, you can compress and/or minify css.
- Copy both CSS files into CSS input
- Turn on Sort selectors and properties
- Obtain output
- Manually remove duplicates
- Re-enter input
- compress or minify your output
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on June 05, 2022Comments
-
Admin about 2 years
I'm looking for a tool that allows you to merge 2 large CSS files. All the ones I've tried so far (like CSSMerge) haven't worked out. Some of them just randomly remove properties. Others choke on the non-standard properties like -webkit and -moz and give me errors. And I also need something that preserves the case of each rule. CSSMerge changed all rules to lower-case.
-
CoderHawk almost 14 yearsthis may help webdeveloper.com/forum/…
-
catdotgif over 9 yearsWhat if one CSS file is over-riding properties of the other? (e.g., where you have created a Wordpress child theme, and now you want to merge and jettison the original CSS file). Have people had success in this case?
-
catdotgif over 9 yearsI answer my own question: yes, it will merge, and it appears to do a decent job of it.
-
sn3ll about 7 yearsThis site no longer exists
-
CoderHawk about 7 years@sn3ll yes it is. Don't worry there's lots more google.com/search?q=minify+css+online