-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
Very confused here, trying out the yuicompressor on a simple javascript file.
My js file looks like:
function splitText(text)
{
return text.split('-')[1];
}
The error is:
[INFO] Using charset Cp1252
[Error] 1:20:illegal character
[Error] 1:20:syntax error
[Error] 1:40:illegal character
[Error]…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In my javascript I have some bits of code specifically used for debugging which I don't want to include in the live site. Is there a way I can semi-comment these bits of code so that they run as javascript normally, but that yui compressor thinks they're comments and removes them?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When I minify jquery using YUI compressor, it works fine.
When I then add gzip compression (and serve this version via mod rewrite), the gzipped version throws this error:
illegal character in jquery.min.js on line 1
Line 1 is:
???????M???????????s?8?0???!sz?dKr?=?
This results in a "jquery is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In my javascript I have some bits of code specifically used for debugging which I don't want to include in the live site. Is there a way I can semi-comment these bits of code so that they run as javascript normally, but that yui compressor thinks they're comments and removes them?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to use YUI Compressor (the original) and use it as part of typical MS build processes (Visual Studio 2008, MSBuild).
Does anyone have any guidance or thoughts on this? For example, good ways for incorporating into project, what to do with existing CSS and JS references, and the like.
I am…
>>> More