notjesseolsson Posted October 26, 2014 Share Posted October 26, 2014 I am thinking about creating a minified version of my project with the closure compiler (http://closure-compiler.appspot.com/home). This compiler would remove a lot of the unused babylon.js code. I don't know very much about open source licensing, is there a way to do this legally? Would I have to put a license somewhere? Oh, and also would this be possible with jQuery? Quote Link to comment Share on other sites More sharing options...
macguyvok Posted October 26, 2014 Share Posted October 26, 2014 Disclaimer: I am not a lawyer. Nor am I associated with Babylon.js. That out of the way, I strongly recommend you read through this stack overflow question about almost exactly what you're asking about: http://programmers.stackexchange.com/questions/251375/combining-3rd-party-javascript-libraries-with-my-code-then-using-closure-compil The tl;dr of it is basically, closure has some mechanisms for complying with the licenses of other libraries, like @preserve. You will want to use them to be compliant. On the other hand, it may be better to simply use babylon.js through a CDN. I don't know if it's available through any official CDN, but I highly recommend using RawGit's CDN mechanism (the production url on that page) and simply linking to the babylon.js source. It will provide more benefit than running babylon through closure, I'll bet. notjesseolsson 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted October 26, 2014 Share Posted October 26, 2014 Not a lawyer either, but even inside the code base there is a procedure for making a custom build, see. https://github.com/BabylonJS/Babylon.js/tree/master/Tools/BuildOurOwnBabylonJS. This is visual studio dependent. I can also think of a way to do it with the gulp build process. Just comment out lines in gulpfile.js, such that it still builds, then test that your app still runs. As far as doing it externally to a build process, you are most likely on your own, as far as support from here goes. I would also not follow advise given here about JQuery, if it was given. I assume they have their own forum. Quote Link to comment Share on other sites More sharing options...
notjesseolsson Posted October 26, 2014 Author Share Posted October 26, 2014 Basically I'm looking for confirmation that there is something illegal about it? Because it's open source so... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 27, 2014 Share Posted October 27, 2014 You can. No problem at all. babylonjs is under Apache 2.0 which allows you to do whatever you want. But I may add this: babylonjs is also published under "loveware": If you like it, please let us know there is a project using. We love that 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.