yui-compressor

Is there a version of YUI Compressor that deals correctly with media queries?

别等时光非礼了梦想. 提交于 2019-11-29 01:26:30
YUI Compressor has a known bug where some media queries, including those used to serve styles to iOS and Android devices (e.g. @media screen and (max-device-width: 480px) {...} ), are broken when compressed, because the space between the and and the opening brace is removed. http://yuilibrary.com/projects/yuicompressor/ticket/2527991 The latest version available for download from the homepage (2.4.2) still has this issue. http://yuilibrary.com/downloads/#yuicompressor Is there an updated version available where this issue is fixed? If you have to get this working in 2.4.2, use the preserve

YUI remove javascript comments

北战南征 提交于 2019-11-28 23:13:21
I need to remove comments (the "// This is a comment" like comments) from some Javascript code, I'm using YUI compressor, there is an option to do that? Thanks Thanks for the response, I'm trying to merge several scripts and after compress with YUI; I've found if I compress and then merge the scripts it works, but if I merge and then compress, something goes wrong and I got a broken script YUI Compressor removes comments by default. You have to use a special comment format to keep comments. /*! This comment will not be removed, so it's a good place to put a copyright */ // this comment will be

How to Minify CSS with SCSS File Watcher in PHPStorm IDE

懵懂的女人 提交于 2019-11-28 18:47:03
问题 Is there a way to configure SASS FileWatcher so it builds a Minified CSS? I currently configured SASS + YUI Compressor to accomplish this but I would like to do this with pure SASS if possible. Here are the screenshots of both configurations: SASS YUI Compressor CSS Thanks in advance. 回答1: Probably the fastest way to achieve this is to use the compressed option, mentioned in the previous comments, as an argument. The quickest way to configure this in PHPStorm is as follows: Go to File >

How can I combine and compress multiple script and css files for production use?

五迷三道 提交于 2019-11-28 11:09:17
I want to use YUI Compressor to combine and compress my css and js file sets when I compile my project. YUI Compressor only takes as input single files. I've tried using the following (Windows) commands to append to the output files, but strange characters appear in the output where appendage occurs. How can I use windows command line or powershell to achieve this? java -jar yuicompressor-2.4.2.jar --charset utf-8 jquery-1.3.2.js > scripts-all.min.js java -jar yuicompressor-2.4.2.jar --charset utf-8 jquery.superfish.js >> scripts-all.min.js If you're developing on Windows, don't forget there's

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

孤街醉人 提交于 2019-11-28 05:14:25
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? I don't particularly understand what you mean by "clean unused CSS", but in any case, I'll throw two tools at you, and maybe one will work ( the good ol' shotgun approach ). CSS Lint seems to point out "duplicate properties". There

individually minify JS and CSS in Visual Studio 2010

被刻印的时光 ゝ 提交于 2019-11-28 01:04:04
问题 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

Files got overwritten in maven project when building a war

浪尽此生 提交于 2019-11-27 16:11:41
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>**/ext-2.0/**/*.js</exclude> <exclude>**/lang/*.js</exclude> <exclude>**/javascripts/flot/*.js</exclude>

Is there a version of YUI Compressor that deals correctly with media queries?

时光毁灭记忆、已成空白 提交于 2019-11-27 15:55:09
问题 YUI Compressor has a known bug where some media queries, including those used to serve styles to iOS and Android devices (e.g. @media screen and (max-device-width: 480px) {...} ), are broken when compressed, because the space between the and and the opening brace is removed. http://yuilibrary.com/projects/yuicompressor/ticket/2527991 The latest version available for download from the homepage (2.4.2) still has this issue. http://yuilibrary.com/downloads/#yuicompressor Is there an updated

YUI remove javascript comments

☆樱花仙子☆ 提交于 2019-11-27 14:46:16
问题 I need to remove comments (the "// This is a comment" like comments) from some Javascript code, I'm using YUI compressor, there is an option to do that? Thanks Thanks for the response, I'm trying to merge several scripts and after compress with YUI; I've found if I compress and then merge the scripts it works, but if I merge and then compress, something goes wrong and I got a broken script 回答1: YUI Compressor removes comments by default. You have to use a special comment format to keep

How can I combine and compress multiple script and css files for production use?

我只是一个虾纸丫 提交于 2019-11-27 05:57:39
问题 I want to use YUI Compressor to combine and compress my css and js file sets when I compile my project. YUI Compressor only takes as input single files. I've tried using the following (Windows) commands to append to the output files, but strange characters appear in the output where appendage occurs. How can I use windows command line or powershell to achieve this? java -jar yuicompressor-2.4.2.jar --charset utf-8 jquery-1.3.2.js > scripts-all.min.js java -jar yuicompressor-2.4.2.jar -