I am working with Pure JS Front-End and tried to use today to insert JavaScript . It worked fine without any idea because there are many errors in libraries which I have been found by JSLIINA, which has been passed by the verifier so that the files can be minimized. I left it because it would be good to work at least merge, but this is not the case. Although eventually all the files were actually merged into one, but the app was discontinued after JPY was considered undefined. The file stays in the first place.
What could be the possible reason for such a strange behavior? Thank you very much for your reply!
UPD here
Since you just want to merge them and erase them Do not want to, try manually merging them. It's simply:
cat file1.js file2.js file3.js> All.js This is similar to CSS, no fancy merging is needed.
I recommend for javascript's medium because it does not want to break code unlike some other tools. UglifyJS is used by jQuery.
When you merge javascript files by simple combination, what is important is the sequence of files to break dependence, which sometimes causes problems, semicolon After the code can break) or at the end of the files are missing the Newlines.
Comments
Post a Comment