After trying to follow the steps in the link Babylon.js ES6 support with Tree Shaking | Babylon.js Documentation
I noticed the lack of information about creating the ‘index.html’ file inside the ‘public’ folder. In the “creation summary”, I suggest adjusting the texts of steps 5. and 6. as follows:
Application Creation Summary
- Create new folder MyAwesomeApp
- Open GitBash (or similar) for MyAwesomeApp
- Run npm init
- Run npm install webpack webpack-cli webpack-dev-server --save-dev
- Run npm install @babylonjs/core and npm install --save-dev @babylonjs/materials
- Create Folder public in MyAwesomeApp and create index.html file in public as described in First App Section below
- Create Folder src in MyAwesomeApp
- Create index.js file in src as described in First App Section below
- Run npx webpack serve to check result in http://localhost:8080/
- Run npx webpack to create dist folder