Home Game Development To exclude js recordsdata from a construct – Cocos Creator

To exclude js recordsdata from a construct – Cocos Creator

0
To exclude js recordsdata from a construct – Cocos Creator

[ad_1]

Hi, im korean develper.

I made a javascript file based mostly on nodejs for comfort of growth. It can also be within the asset folder and can’t be rerouted because of private causes.

My downside is, this js file doesn’t should be included within the construct, nevertheless it tries to be included within the construct and causes an error. Is there a method to exclude the javascript file within the asset folder from the construct?

Hi, you’ll be able to attempt to wrap up your js code in defines as you wanted


if (!CC_BUILD) {
// your js code right here
}

I don’t wish to modify the code, since there’s no half that calls the js file, I wish to ignore it within the construct.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here