Last active
November 20, 2016 07:26
-
-
Save zehnpaard/aa6d1ce8bf236b004ab7f06cc99bea05 to your computer and use it in GitHub Desktop.
Minimal setup for using lein garden to auto-compile CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns min-lein-garden.core | |
(:require [garden.def :refer [defstyles]])) | |
(defstyles style | |
[:body | |
{:font-size "14px" | |
:background "#f00"}]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── project.clj | |
└── src | |
└── min_lein_garden | |
└── core.clj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject min-lein-garden "0.0.1" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[garden "1.3.2"]] | |
:plugins [[lein-garden "0.3.0"]] | |
:garden | |
{:builds [{:source-paths ["src"] | |
:stylesheet min-lein-garden.core/style | |
:compiler {:output-to "resources/public/css/main.css"}}]}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment