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

To exclude js recordsdata from a construct – Cocos Creator


Hello, im korean develper.

I made a javascript file primarily based on nodejs for comfort of growth. Additionally it is within the asset folder and can’t be rerouted as a consequence of private causes.

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


Hello, you may 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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments