Browse Source

Add Cache-Control

Tienson Qin 5 years ago
parent
commit
ff92835894
2 changed files with 5 additions and 5 deletions
  1. 2 2
      .projectile
  2. 3 3
      shadow-cljs.edn

+ 2 - 2
.projectile

@@ -4,5 +4,5 @@
 -/node_modules/
 -/.cpcache
 -/.shadow-cljs/
--/resources/public/js/cljs-runtime/
--/resources/public/js/main.js
+-/resources/static/js/cljs-runtime/
+-/resources/static/js/main.js

+ 3 - 3
shadow-cljs.edn

@@ -7,7 +7,7 @@
   {:target :browser
    :modules {:main {:init-fn frontend.core/init}}
 
-   :output-dir "resources/public/js"
+   :output-dir "resources/static/js"
    :asset-path "/js"
 
    :compiler-options {:infer-externs :auto
@@ -15,8 +15,8 @@
    ;; TODO: purge-css not working properly
    ;; :build-hooks [(shadow.hooks/purge-css
    ;;                {:css-source "node_modules/tailwindcss/dist/tailwind.min.css"
-   ;;                 :js-globs   ["public/js/*.js"]
-   ;;                 :public-dir    "public/css"})]
+   ;;                 :js-globs   ["static/js/*.js"]
+   ;;                 :public-dir    "static/css"})]
    :devtools
    ;; before live-reloading any code call this function
    {:before-load frontend.core/stop