From 5fd2f7b405edb3f1b85144541748b35a72e3ab59 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Thu, 12 Jul 2018 14:02:44 +0300 Subject: [PATCH] Enable cljs aot-cache --- .circleci/config.yml | 1 + examples/frontend/project.clj | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a32a76b4..c6d6162d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,7 @@ jobs: key: 'v1-clj-{{ checksum "project.clj" }}' paths: - ~/.m2 + - ~/.cljs/.aot_cache test-cljs: working_directory: ~/test diff --git a/examples/frontend/project.clj b/examples/frontend/project.clj index c040a046..f28413ca 100644 --- a/examples/frontend/project.clj +++ b/examples/frontend/project.clj @@ -38,14 +38,16 @@ :source-map true :optimizations :none :pretty-print true - :preloads [devtools.preload]}} + :preloads [devtools.preload] + :aot-cache true}} {:id "min" :source-paths ["src"] :compiler {:output-to "target/cljsbuild/public/js/app.js" :output-dir "target/cljsbuild/public/js" :source-map "target/cljsbuild/public/js/app.js.map" :optimizations :advanced - :pretty-print false}}]} + :pretty-print false + :aot-cache true}}]} :figwheel {:http-server-root "public" :server-port 3449