Skip to content

Commit

Permalink
static bugfix (docs)
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Apr 22, 2024
1 parent 7113e0f commit 8297c8d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions webly/src/webly/build/static.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
(doall (map #(fs/copy % dest {:replace-existing true}) files))))

(defn copy-js []
(info "copying .js files..")
(copy-pattern "target/webly/public" resource-path "*.js")
(when (fs/exists? "target/webly/public/cljs-runtime")
(copy-pattern "target/webly/public/cljs-runtime" (str resource-path "cljs-runtime/") "*.js")
(copy-pattern "target/webly/public/cljs-runtime" (str resource-path "cljs-runtime/") "*.js.map")))
(when (fs/exists? "target/webly/public")
(info "copying .js files..")
(copy-pattern "target/webly/public" resource-path "*.js")
(when (fs/exists? "target/webly/public/cljs-runtime")
(copy-pattern "target/webly/public/cljs-runtime" (str resource-path "cljs-runtime/") "*.js")
(copy-pattern "target/webly/public/cljs-runtime" (str resource-path "cljs-runtime/") "*.js.map"))))

(defn generate-static-html [frontend-config]
(info "generating static html page ..")
Expand Down

0 comments on commit 8297c8d

Please sign in to comment.