https://github.com/thheller/code-splitting-clojurescript
Example App using ClojureScript :modules and shadow-cljs
https://github.com/thheller/code-splitting-clojurescript
Last synced: 3 months ago
JSON representation
Example App using ClojureScript :modules and shadow-cljs
- Host: GitHub
- URL: https://github.com/thheller/code-splitting-clojurescript
- Owner: thheller
- Created: 2019-03-03T21:25:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T20:28:00.000Z (almost 7 years ago)
- Last Synced: 2025-02-28T06:30:34.950Z (over 1 year ago)
- Language: Clojure
- Homepage: https://code.thheller.com/blog/shadow-cljs/2019/03/03/code-splitting-clojurescript.html
- Size: 3.91 KB
- Stars: 20
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code Splitting ClojureScript
This is a slightly modified [Code Splitting ClojureScript](https://code.thheller.com/blog/shadow-cljs/2019/03/03/code-splitting-clojurescript.html) example meant to demonstrate a "common" code-splitting scenario where a couple modules exist and each may depend on others.
## Building
You can compile it by cloning the repo and running
```
npm install
clj -M:dev:start
;; or
clj -M:dev:release
npx shadow-cljs release app
```
and then open http://localhost:8005.
The demo is hosted here:
- https://code.thheller.com/demos/code-splitting-esm/
### Optional: Build Reports
```
;; generate a build report via
npx shadow-cljs run shadow.cljs.build-report app report.html
;; then open report.html in the browser
```
The sample build report is available here:
- https://code.thheller.com/demos/code-splitting-esm/report.html