yui-compressor

Should I use the YUI Compressor or the new Google Closure compiler to compress my JavaScript?

不问归期 提交于 2019-12-03 01:28:34
问题 YUI Compressor was the consensus best tool for minimizing, but Closure seems like it could be better. 回答1: "Whichever you find best for you" I think is the general answer at the moment - YUI has been available longer so undoubtedly will be the one which currently has the consensus as being the best tool. Whereas Closure is new to us - so there isn't the wealth of experience with Closure as there is with YUI. Hence I don't think you'd find a compelling real-world arguments of why to use

When using the YUI compressor, should I combine then minify, or minify then combine?

瘦欲@ 提交于 2019-12-01 19:25:15
问题 I've read some people saying there can be issues if you combine and then minify, and that you should always minify then combine (See for example the comments on this question.) However, I've never seen an example of what these issues are or encountered them myself. I also can't find anything official from the YUI devs stating what the best practice is. 回答1: Due to the way compression algorithms work, combining and then minifying should give us the best results. GZIP compression Currently the

Automate Eclipse “Yui Compressor…”

橙三吉。 提交于 2019-12-01 04:30:37
问题 Eclipse PDT has this handy built-in Yui Compressor in the context menu for files. But when building a webapp that uses multiple such files, it becomes tedious to compress the files manually after each update. It doesn't even remember what files compress to which filenames, so you have to enter that again. Is it possible to automate this process easily within Eclipse, so you can click on "build" or something and all specified files will be compressed to their targets? There is really a vacuum

symfony2 assetics yui compressor on windows (path syntax)

 ̄綄美尐妖づ 提交于 2019-11-30 16:04:56
问题 I'm trying to get assetics running with the yui compressor and, if this is running, sass. Right now, both don't work. When removing all filters from config.yml and the twig template, it works and php app/console assetic:dump does copy the css and js files. Now I want to add the yui compressor and my config.yml looks like this: assetic: debug: %kernel.debug% use_controller: false filters: yui_js: jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar Adding the filter to the template

symfony2 assetics yui compressor on windows (path syntax)

人走茶凉 提交于 2019-11-30 15:56:31
I'm trying to get assetics running with the yui compressor and, if this is running, sass. Right now, both don't work. When removing all filters from config.yml and the twig template, it works and php app/console assetic:dump does copy the css and js files. Now I want to add the yui compressor and my config.yml looks like this: assetic: debug: %kernel.debug% use_controller: false filters: yui_js: jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar Adding the filter to the template and running assetic:dump again ends in the following error (translation of message by me):

HTML + JavaScript + CSS compact tool

我是研究僧i 提交于 2019-11-30 12:11:59
I need a tool which can minify, optimize and munge many files of those possible types HTML (minify only) JavaScript (minify, optimize and munge) CSS (minify) The final result should be one HTML file only with all JavaScript and CSS embedded or in the worst scenario 3 files respectively for HTML, JS, and CSS. I am aware of tools like YUI Compressor etc. What I currently have not found is the type of compressor which will work on all those file types and merge them in one huge file only. Gad, consider the drawbacks to minifying CSS. If you don't have a system where you edit normal/minify/ then

yuicompressor maven plugin and maven-war-plugin

六月ゝ 毕业季﹏ 提交于 2019-11-29 22:28:14
I've been struggling with getting this plugin to play nicely with the maven-war-plugin for a couple of hours now and I thought it was time to ask for help. I have the plugin defined as follows: <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>yuicompressor-maven-plugin</artifactId> <version>1.3.0</version> <executions> <execution> <id>compressyui</id> <phase>process-resources</phase> <goals> <goal>compress</goal> </goals> <configuration> <nosuffix>true</nosuffix> <warSourceDirectory>${basedir}/WebContent</warSourceDirectory> <jswarn>false</jswarn> </configuration> </execution> <

HTML + JavaScript + CSS compact tool

為{幸葍}努か 提交于 2019-11-29 17:52:12
问题 I need a tool which can minify, optimize and munge many files of those possible types HTML (minify only) JavaScript (minify, optimize and munge) CSS (minify) The final result should be one HTML file only with all JavaScript and CSS embedded or in the worst scenario 3 files respectively for HTML, JS, and CSS. I am aware of tools like YUI Compressor etc. What I currently have not found is the type of compressor which will work on all those file types and merge them in one huge file only. 回答1:

How to package (minify) an extjs 4 application

扶醉桌前 提交于 2019-11-29 15:11:39
问题 I am looking for de facto instructions for packaging and minfying an Ext JS 4 app. Everything seems to point to the Sencha SDK, but everything around this is targeted at Sencha Touch, and anyway, when I follow the instructions ( sencha app build testing ) I receive: "The current working directory (C:...) is not a recognized Sencha SDK or application folder" Which throws me, since the structure I am using was generated by Sencha Architect. Looking at the docs here, the folder structure

individually minify JS and CSS in Visual Studio 2010

蓝咒 提交于 2019-11-29 07:34:14
I'm currently migrating a project to Visual Studio 2010 and am trying to figure out how to minify JS and CSS files individually on build. In Visual Studio 2008 I used a Web Deployment Projects with a build task that referenced the C# port of the YUI Compressor . In Visual Studio 2010 Web Deployment Projects seem to have been integrated into the build process. Now there is this Microsoft AJAX Minifier in public beta and I'm more confused than ever. I found this blog post which makes the business with the Microsoft AJAX Minifier a non-starter because of CSS limitations. This shouldn't be