https://github.com/yetanalytics/figwheel-worker-example
An example using Figwheel in a web worker
https://github.com/yetanalytics/figwheel-worker-example
Last synced: 8 months ago
JSON representation
An example using Figwheel in a web worker
- Host: GitHub
- URL: https://github.com/yetanalytics/figwheel-worker-example
- Owner: yetanalytics
- Created: 2016-11-23T22:19:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-28T18:11:08.000Z (over 9 years ago)
- Last Synced: 2025-08-31T02:40:05.620Z (9 months ago)
- Language: Clojure
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# figwheel-worker-example
This project demonstrates the usage of Figwheel with a web worker.
## Setup
To get an interactive development environment run:
lein figwheel dev dev-worker
and open your browser at [localhost:3449](http://localhost:3449/).
This will auto compile and send all changes to the browser without the
need to reload. After the compilation process is complete, you will
get a Browser Connected REPL. An easy way to try it is:
(js/alert "Am I connected?")
and you should see an alert in the browser window.
To clean all compiled files:
lein clean
To create a production build run:
lein do clean, cljsbuild once min min-worker
To prevent an origin error, start Chrome with the `--allow-file-access-from-files` flag. Open your browser in `resources/public/index.html`. You will not
get live reloading, nor a REPL.
## License
Copyright © 2016 YET Analytics INC
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.