I have to merge CSS files to one big CSS file to reduce connections made during page load. Basically if I just append CSS files to one big file, are these styles going to work exactly like before, or are there any issues when you merge multiple CSS files together? I’m developing my software in Java, if there is some library that already does CSS merging, I would like to hear about that.
Share
If your CSS files use
@import, then merging them into one file might change the imported URLs.When an
@importhas a relative URL it is resolved against the URL of the containing CSS, so you could end up inadvertently breaking@imports.http://www.w3.org/TR/css3-values/