Skip to content

Instantly share code, notes, and snippets.

@dimovich
Last active July 12, 2019 18:30
Show Gist options
  • Save dimovich/075802f55c9c8fe308ce2893db7c1a94 to your computer and use it in GitHub Desktop.
Save dimovich/075802f55c9c8fe308ce2893db7c1a94 to your computer and use it in GitHub Desktop.
Compile SASS with deps.edn
{;; ...
:aliases
{
:figwheel
{
:extra-paths ["resources"]
:extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.0"}}
:main-opts ["-i sass.clj -m figwheel.main -b dev"]
}
}
;; ...
}
;; make sure to install sass and postcss first
(import 'java.lang.Runtime)
(println "Starting SASS watch process")
(.exec (Runtime/getRuntime) "sass --watch sass/main.sass:resources/public/css/main.css")
(println "Starting Autoprefixer")
(.exec (Runtime/getRuntime)
"postcss resources/public/css/main.css -u autoprefixer -o resources/public/css/prefixed-main.css -w")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment