binki Posted February 5, 2017 Share Posted February 5, 2017 If I look at https://www.npmjs.com/~babylonjs and inside the provided babylonjs-2.5.0 npm package, I observe that I have no way to access the Canvas2D project’s API. I think the babylonjs npm user should publish a Canvas2D package so that we can use it in webpack projects and I think this should be published by the official babylonjs npm user. Thanks! mwissink and kpgbrink 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 6, 2017 Share Posted February 6, 2017 I'll have it fix for next update binki 1 Quote Link to comment Share on other sites More sharing options...
Nockawa Posted February 6, 2017 Share Posted February 6, 2017 I think the package declaration on GitHub is already update to include Canvas2D, a new release has to be made. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 6, 2017 Share Posted February 6, 2017 It was not but I did it this morning Quote Link to comment Share on other sites More sharing options...
binki Posted February 6, 2017 Author Share Posted February 6, 2017 As a followup, wondering if the extensions can be included in the npm package for babylonjs. It’d be nice to be able to do a deep require like require('babylonjs/extensions/materialsLibrary/water'). And putting the .fx files in there would probably make sense. I would have to figure out how to get my webpack setup to work with shaders, yet to do that. But if the files could at least be in the npm package so that I can access them at all, it would make my webpack project much easier. Thoughts? mwissink 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 7, 2017 Share Posted February 7, 2017 I see no problem. You can update the npm package here:https://github.com/BabylonJS/Babylon.js/tree/master/Tools/Npm binki 1 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.