Skip to content

Commit

Permalink
[#341] Make cljsbuild output-to resources/public/main.js directly (@s…
Browse files Browse the repository at this point in the history
…haolang)

Before this change, the example-project couldn't run on Windows-based machines. This change makes it possible to run on any.
  • Loading branch information
shaolang authored and ptaoussanis committed Oct 19, 2019
1 parent c5ef9d0 commit 65f1217
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pom.xml*
.nrepl-port
*.jar
*.class
*.js
.env
.DS_Store
/lib/
Expand All @@ -11,4 +12,4 @@ pom.xml*
/checkouts/
/logs/
/docs/
/doc/
/doc/
4 changes: 3 additions & 1 deletion example-project/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@
{:builds
[{:id :cljs-client
:source-paths ["src"]
:compiler {:output-to "target/main.js"
:compiler {:output-to "resources/public/main.js"
:optimizations :whitespace #_:advanced
:pretty-print true}}]}

:main example.server

:clean-targets ^{:protect false} ["resources/public/main.js"]

;; Call `lein start-repl` to get a (headless) development repl that you can
;; connect to with Cider+emacs or your IDE of choice:
:aliases
Expand Down
1 change: 0 additions & 1 deletion example-project/resources/public/main.js

This file was deleted.

0 comments on commit 65f1217

Please sign in to comment.