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: 91
Reputation: 862

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
94
S
33
G
113
Posts: 5,353
Reputation: 73,267

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
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

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: 91
Reputation: 862

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: 91
Reputation: 862

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
399
S
236
G
89
Posts: 24,519
Reputation: 195,351


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests