Script minification question.

Get help using Construct 2

Post » Fri Oct 30, 2015 9:00 pm

So is there a way to alter the c2runtime.js file after it's minified? I am wanting to turn the cocoonlazyload feature off and, after minification, I can't figure out how to do it. My other question is, is there a way to minify the script AFTER you've exported? Thanks for any help.
Image
B
12
S
2
Posts: 95
Reputation: 870

Post » Fri Nov 06, 2015 6:40 pm

You could I guess if you could figure out what the minifier renamed cocoonlazyload to, but that's not really possible. Also yes you can find a few js minifiers online to do it later I suppose.
B
101
S
39
G
134
Posts: 5,591
Reputation: 85,520

Post » Sat Nov 07, 2015 1:48 pm

The point of minification is to make reverse engineering hard, so it deliberately makes this difficult. Why do you want to change that option anyway?
Scirra Founder
B
415
S
248
G
92
Posts: 25,295
Reputation: 200,984

Post » Sat Nov 07, 2015 3:00 pm

@Ashley - thanks for asking. Minifying breaks the cordova export for cocoon.io. Also, as I said in the OP, I wanted to disable cocoonlazyload after minification. Am I correct that changing "cocoonLazyLoad=!0" to "cocoonLazyLoad=!1" would do it?
Image
B
12
S
2
Posts: 95
Reputation: 870

Post » Sat Nov 07, 2015 3:08 pm

@Ashley - minifying script broke the cocoon canvas+ plugin and made it ignore the "exit app" command.
Image
B
12
S
2
Posts: 95
Reputation: 870

Post » Mon Nov 09, 2015 11:29 am

If minification ever breaks anything, please file a bug report following all the guidelines. It should never break anything.
Scirra Founder
B
415
S
248
G
92
Posts: 25,295
Reputation: 200,984


Return to How do I....?

Who is online

Users browsing this forum: sofiabatte and 3 guests