BabylonJS Typescript Project
Get started with BabylonJS in HTML
1 min readMay 31, 2022
Project structure
Press enter or click to view image in full size![]()
Instructions
- Create
Index.htmlinside public directory.
- Create
style.cssinside public directory.
- Create
app.tsinside src directory, which is project’s starter file.
- Add webpack to you project by creating
webpack.config.jsin root directory.
Specify project entry, bundle output, resolvers, plugins, and dev server.
- Add typescript config by creating
tsconfig.jsonin root directory.
- Scripts to build and run project. Add scripts to
package.jsonin root.
Get Eduard Jacobs’s stories in your inbox
Join Medium for free to get updates from this writer.
- Install dependencies. Make sure you have
package.jsonin root directory.
— Babylon
npm install --save-dev @babylonjs/core @babylonjs/inspector— Typescript
npm install --save-dev typescript ts-loader— Webpack
npm install --save-dev webpack webpack-cli webpack-dev-server html- webpack-plugin- At this point you will have
package.jsonthat looks like this.
- Now you can build and start the project
Build
npm run buildStart
npm run startLinks
GitHub: Project source code
Gist: Source code








