Tuesday, September 6, 2022
HomeGame DevelopmentTo exclude js information from a construct - Cocos Creator

To exclude js information from a construct – Cocos Creator


Hello, im korean develper.

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

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


Hello, 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 need to modify the code, since there’s no half that calls the js file, I need to ignore it within the construct.

Then you might modify a construct course of by way of an editor extension that it is advisable to create.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments