yui-compressor

Tools to optimize (remove redundancy and merge) CSS? [closed]

安稳与你 提交于 2019-11-27 00:56:49
问题 I'm searching for a good CSS compress, merge and optimization tool. I have found tools that clean the CSS but they don't optimize the overwrites. Here is a basic example: a{color:#000} and on another line the a color is overwritten with this: a{color:#fff} Does anyone know of a tool that can clean the unused CSS, that was overwritten and keep just the applied style? 回答1: I don't particularly understand what you mean by "clean unused CSS", but in any case, I'll throw two tools at you, and

Files got overwritten in maven project when building a war

六眼飞鱼酱① 提交于 2019-11-26 17:25:20
问题 I'm building a web application project using maven, and packaging is set to "war". I also use YUI compressor plugin to compress javascript codes in the webapp directory. I've set up the YUI compressor like this: <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>yuicompressor-maven-plugin</artifactId> <version>1.3.0</version> <executions> <execution> <phase>process-resources</phase> <goals> <goal>compress</goal> </goals> </execution> </executions> <configuration> <excludes> <exclude>*

Combine and Minify Multiple CSS / JS Files

心已入冬 提交于 2019-11-26 14:10:49
I am trying to optimize a site performance by consolidating and compressing the CSS and JS files. My question is more about the (concrete) steps on how to achieve this, given a real situation I was facing (should be typical among other developers too, though). My page references several CSS and JS files like the following: <!-- It's easier to work on smaller files during development. Hence, the multiple CSS and JS files. --> <link type="text/css" rel="stylesheet" href="/css/main.css" /> <link type="text/css" rel="stylesheet" href="/css/secondary-1.css" /> <link type="text/css" rel="stylesheet"

Combine and Minify Multiple CSS / JS Files

心不动则不痛 提交于 2019-11-26 03:49:15
问题 I am trying to optimize a site performance by consolidating and compressing the CSS and JS files. My question is more about the (concrete) steps on how to achieve this, given a real situation I was facing (should be typical among other developers too, though). My page references several CSS and JS files like the following: <!-- It\'s easier to work on smaller files during development. Hence, the multiple CSS and JS files. --> <link type=\"text/css\" rel=\"stylesheet\" href=\"/css/main.css\" /