New Post: YUI compressor + ASP.NET + post build event + build errors
i find a free online service to minify js and compress css , it's using YUI compressor.
View ArticleNew Post: Disable the cache if files changed
we add an Assembly.GetLinkerTimestamp().GetHashCode() onto the end of our script and css registrations so a new build of a website ensures you will pull fresh js and css. Ok so maybe that hasn't...
View ArticleNew Post: Disable the cache if files changed
CSS and JS files are stored in the browser cache. In my case, a random GET-parameter prevent caching css and js files if they really have been changed. I don't understand why this would be a concern...
View ArticleNew Post: Disable the cache if files changed
freeranger wrote: For the second one, version of what? What are you trying to achieve? Hello, CSS and JS files are stored in the browser cache. In my case, a random GET-parameter prevent caching css...
View ArticleNew Post: Disable the cache if files changed
Hello, I'm not sure why you would want either of these TBH. I guess you could add something in MSBUILD to check all the files and not invoke the compressor if none of the dates have changed, but that...
View ArticleNew Post: Disable the cache if files changed
Deploy - if (date_modify("style.min.css") != date_modify("style1.css") || date_modify("style.min.css") != date_modify("style2.css")) { // files changed, minify ["style1.css", "style2.css"] =>...
View ArticleNew Post: Failed to read... problem
mahmoud690 wrote: It is a correct signature. Is there any way to ignore these problems? sure is. don't use "delete" as a indexer key. use anything else that is not a reserved word. what about:...
View ArticleNew Post: Failed to read... problem
Why is it bad? assume I have this : var x = {}; x["delete"] = true; alert(x.delete); It is a correct signature. Is there any way to ignore these problems?
View ArticleNew Post: YUI compressor + ASP.NET + post build event + build errors
Sounds like it's just not finding the dlls...maybe some of your paths are a bit wrong. If you zip up and send over an entire project that fails (as minimal as possible, only enough to demonstrate the...
View ArticleNew Post: YUI compressor + ASP.NET + post build event + build errors
Hi All, I am trying to compress JS/CSS files once project is build successfully. I am using YUI compressor DLLs. I have gone through multiple examples...
View ArticleUpdated Wiki: Home
WE HAVE MOVED TO GITHUB ! All code and questions are now over at PureKrome/YUICompressor. Please pop over there for all your needs.Cya there!
View ArticleNew Post: MSBUILD YUI
Ah no, consoleart said "hi, no attachment, where do i see the code?" and I replied to that and he then changed his message while I was replying :) @consoleart, I suspected it was the case that you were...
View ArticleNew Post: MSBUILD YUI
@freeranger - it's all good, @consoleart said it's all working fine. 'the code' is the YUIC.NET package, he/she was mentioning. also @consoleart - a unit test which tests obfuscation vs no-obfuscation...
View ArticleNew Post: MSBUILD YUI
err...what code? I've asked you to attach a small example showing your input and your output, displaying the problem. I haven't got anything to show you because I haven't seen the problem yet...
View ArticleNew Post: MSBUILD YUI
hi, sorry the code works perfectly, seems i was seeing the global variables and since they were not obfuscated i thought the variables are not getting changed.
View ArticleNew Post: MSBUILD YUI
Hi, Please attach a small example showing the input and the output, thanks.
View ArticleNew Post: MSBUILD YUI
Hi, I have used a MSBUILD task to minify javascript files.<JavaScriptCompressorTask SourceFiles="@(JavaScriptFiles)" DeleteSourceFiles="false"...
View ArticleNew Post: yui on command line
Hi, This is the .NET port of the yui compressor - it looks like you are trying to use the java one? So you need to report your problem to them :)http://yui.github.io/yuicompressor/
View Article