johnlanz Posted August 13, 2016 Share Posted August 13, 2016 Hi Guys, I notice that most of babylon js demo is compiled into .babylon Just like the demo I want to compile my current javascript code or all javascript folder into 1 file (.babylon). Is there any tutorial on how to do it? Thanks, John Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 15, 2016 Share Posted August 15, 2016 Hello Actually .babylon contains only scene data (lights, cameras, meshes, etc..). You still need code to load the .babylon file Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 15, 2016 Share Posted August 15, 2016 More info here: https://www.eternalcoding.com/?p=313 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 15, 2016 Share Posted August 15, 2016 Assuming this is not even a question about Babylon.JS, you can just use copy (DOS), or cat (Unix) to combine files of any type. JS files need to be combined in the same order as you are listing them in the html header. Once a single file, you can Gulp it to shrink it. Gulp requires node installed, so I would use a website which will do it for you if the original file is not too big. 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.