momenimum Posted July 27, 2018 Share Posted July 27, 2018 I know that I can add them by changing the HTML file and adding the scripts directly, but when I export my project that HTML changes and the minified JS does not include them. What is the best way to add other libraries to my project that will be exported properly? Thanks! Quote Link to comment Share on other sites More sharing options...
enpu Posted July 27, 2018 Share Posted July 27, 2018 You can load JavaScript files with addAsset function. For example download jQuery js file and put it into your media folder. game.addAsset('jquery-3.3.1.js'); Quote Link to comment Share on other sites More sharing options...
momenimum Posted July 27, 2018 Author Share Posted July 27, 2018 That works, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.