Skip to content

Commit

Permalink
Added live reloading of css to figwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky427 committed Aug 9, 2015
1 parent 4a8c591 commit b35b1d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject electron/lein-template "0.1.1"
(defproject electron/lein-template "0.1.2"
:description "A Leiningen template for an Electron/ClojureScript setup with Figwheel and Reagent."
:url "https://github.com/ducky427/electron-template"
:license {:name "MIT License"
Expand Down
Empty file.
1 change: 1 addition & 0 deletions resources/leiningen/new/electron/app/index.html
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<title>{{name}}</title>
<link href="components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<div id="app" style="height: inherit"></div>
Expand Down
2 changes: 2 additions & 0 deletions resources/leiningen/new/electron/project.clj
Expand Up @@ -25,6 +25,8 @@

:clean-targets ^{:protect false} [:target-path "out" "app/js/p"]

:figwheel {:css-dirs ["app/css"]}

:profiles {:dev {:cljsbuild {:builds {:app {:source-paths ["env/dev/cljs"]
:compiler {:source-map true
:main "{{project-ns}}.dev"
Expand Down
1 change: 1 addition & 0 deletions src/leiningen/new/electron.clj
Expand Up @@ -37,6 +37,7 @@
["app/index.html" (render "app/index.html" data)]
["app/package.json" (render "app/package.json" data)]
["app/prod.config.json" (render "app/prod.config.json" data)]
["app/css/main.css" (render "app/css/main.css" data)]
["app/img/logo.icns" (binary "app/img/logo.icns")]
["app/img/logo.ico" (binary "app/img/logo.ico")]
["app/img/logo_96x96.png" (binary "app/img/logo_96x96.png")]
Expand Down

0 comments on commit b35b1d7

Please sign in to comment.