Why does construct minify method names from a extern script?

0 favourites
  • 8 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hello

    Why does construct rename(minify) method names in c2runtime.js, which owned by a external script?

    How can I stop this?

    Thanks for your help.

  • I believe you can turn off minifying during export... turned on by default.

  • Using minify is a way to obfuscate the output in order to prevent unscrupulous individuals from reverse engineering your code.

    I would have thought that was a good thing(!?).

  • Good point, Very good point indeed.

  • Construct 2 only minifies c2runtime.js, not any other script files, so the sfs2x_api_js.js file in your picture will not have been touched by Construct 2.

    If code in c2runtime.js refers to the external script, those terms will also be minified unless you write code which is compatible with Closure Compiler's advanced mode. This is all documented.

  • Construct 2 only minifies c2runtime.js, not any other script files, so the sfs2x_api_js.js file in your picture will not have been touched by Construct 2.

    If code in c2runtime.js refers to the external script, those terms will also be minified unless you write code which is compatible with Closure Compiler's advanced mode. This is all documented.

    That means I'll never can use Smartfox API, when I minify my construct project?

    Is there no way to say in script, dont minify this part?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • No, it just means you need to access properties with foo["bar"] instead of foo.bar.

  • No, it just means you need to access properties with foo["bar"] instead of foo.bar.

    Thanks, i will try it.

    I should have stayed with C.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    So much for rewrite.... But...

    Everything is working fine now.

    Thank you so much!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)