Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcascaval/scala-threejs-facades-example
https://github.com/dcascaval/scala-threejs-facades-example
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dcascaval/scala-threejs-facades-example
- Owner: dcascaval
- Created: 2021-09-24T09:41:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-06T00:07:53.000Z (over 3 years ago)
- Last Synced: 2024-11-05T23:19:44.539Z (2 months ago)
- Language: Scala
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a fully contained starter example of using [scala-threejs-facades](https://github.com/dcascaval/scala-threejs-facades) in a project.
To run:
```
sbt
> ~fastOptJS/webpack
```and serve the `index.html` file or open it in a browser.
This will generate a library bundle, and webpack will run only on the code in your project (i.e. not all of `THREE`) on file changes. Note that when releasing code, we should use `fullOptJS/webpack`, which will use ScalaJS's full optimizer as well as webpack's production mode. In this case you should comment out `webpackBundlingMode := BundlingMode.LibraryOnly()` in `build.sbt`, and adjust `index.html` to include the single bundle instead of the library bundles accordingly.