Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Weird generation problem while building 4MB app.

$
0
0
For anyone running in to this issue: 

Add this: 


  1. var inLengthComp = compressCollection([text], [mapObj]).length();
  2. if(
  3. inLengthComp ==0 
  4. ) {
  5. steal.print("      ! compression failed " + stl.rootSrc + ' has syntactical issues. Eg usage of double comment asterisks.');
  6. } else {
  7. steal.print("      -> Compression OK " + stl.rootSrc + ' compressed to ' + inLengthComp + ' bytes\n');
  8. }
to steal\build\scripts\scripts.js insert after line ±100 ( statement: currentLineMap.push(mapObj);)

It will then tell you which JS file bombs.

Viewing all articles
Browse latest Browse all 3491

Trending Articles