Last active
July 12, 2019 18:30
-
-
Save dimovich/075802f55c9c8fe308ce2893db7c1a94 to your computer and use it in GitHub Desktop.
Compile SASS with deps.edn
This file contains 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
{;; ... | |
: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"] | |
} | |
} | |
;; ... | |
} | |
This file contains 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
;; 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