When you add the jquery-x.x.x.min.js to clearcase you have to specify
the file type like this:
cleartool mkelem -eltype compressed_file jquery-x.x.x.min.js
cleartool ci -nc jquery-x.x.x.min.js
A minified javascript file has all the whitespace characters removed to make it more efficient to load the javascript on the client browser. So the entire contents of the javascript source file is compressed into a single line (removing all whitespace). Clearcase still treats it as text file but it needs to be told explicitly if its a compressed text file. I figured there is no way on the UI (clearcase explorer) that lets us do so. So we need to go to command line cleartool and run the above command to make it work.
No comments:
Post a Comment