Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
brettatoms committed Nov 16, 2024
1 parent 56a6c88 commit af157aa
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/todo-app/src/todo.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[taoensso.telemere :as t]
[taoensso.telemere.tools-logging :as tt]
[zodiac.core :as z]
[zodiac.ext.assets :as assets]))
[zodiac.ext.assets :as z.assets]))

;; Logging setup
(add-tap println)
Expand Down Expand Up @@ -95,15 +95,15 @@

(defn -main [& _]
(let [project-root (System/getenv "PWD")
assets-ext (assets/init {;; The config file is used by the vite command
;; so it needs to be an absolute path on the
;; filesystem, e.g. not in a jar.
:config-file (str (fs/path project-root "vite.config.js"))
;; The manifest path is the relative resource
;; path to the output manifest file. This value doesn't override the build
;; time value for the output path of the manifest file.
:manifest-path "todo/.vite/manifest.json"
:asset-resource-path "todo/assets"})
assets-ext (z.assets/init {;; The config file is used by the vite command
;; so it needs to be an absolute path on the
;; filesystem, e.g. not in a jar.
:config-file (str (fs/path project-root "vite.config.js"))
;; The manifest path is the relative resource
;; path to the output manifest file. This value doesn't override the build
;; time value for the output path of the manifest file.
:manifest-path "todo/.vite/manifest.json"
:asset-resource-path "todo/assets"})
system-config {::db {}
::zodiac {:extensions [assets-ext]
:routes #'routes
Expand Down

0 comments on commit af157aa

Please sign in to comment.