- Build Unity Project
- Open
UnityProject
in Unity - Build as WebGL to
app/assets/unity
(using any template)- go to the
app/assets
folder - choose to name it
unity
- go to the
- Open
- Build website
- Run
npm install
- Run
npm start
+ open the resulting website
- Run
- Done!
- Firebase support has not yet been added
- Code for embedding Unity is currently in the
App
component - The current version displays (almost exclusively) the Unity game
- There is an HTML button beneath it to spawn objects in the game
This code is based on Minimalistic ES6 React boilerplate
npm start
- start the dev servernpm clean
- delete the dist foldernpm run production
- create a production ready build indist
foldernpm run lint
- execute an eslint checknpm test
- run all testsnpm run test:watch
- run all tests in watch modenpm run coverage
- generate code coverage report in thecoverage
folder
You can export specific vendors in separate files and load them. All vendors should be included in app/vendors
and will be exported in a vendors
folder under dist
. The main idea is to serve independent JavaScript and CSS libraries, though currently all file formats are supported.
! Don't forget to add the vendors in app/index.html
and build/index.html
.
Run npm run production
. The production-ready code will be located under dist
folder.