fixed sass paths
This commit is contained in:
parent
61d6e79be7
commit
8173f5e103
2 changed files with 4 additions and 4 deletions
|
@ -301,7 +301,9 @@
|
||||||
(println (blue "generating rss"))
|
(println (blue "generating rss"))
|
||||||
(spit (str public blog-prefix "/" rss-name) (rss/make-channel config posts))
|
(spit (str public blog-prefix "/" rss-name) (rss/make-channel config posts))
|
||||||
(println (blue "compiling sass"))
|
(println (blue "compiling sass"))
|
||||||
(sass/compile-sass->css! sass-src sass-dest)))
|
(sass/compile-sass->css!
|
||||||
|
(str "resources/templates/" sass-src)
|
||||||
|
(str "resources/public" blog-prefix "/" sass-dest))))
|
||||||
|
|
||||||
(defn compile-assets-timed []
|
(defn compile-assets-timed []
|
||||||
(time
|
(time
|
||||||
|
|
|
@ -26,14 +26,12 @@
|
||||||
(str src-sass "/" sass-file)
|
(str src-sass "/" sass-file)
|
||||||
(str dest-sass "/" )))
|
(str dest-sass "/" )))
|
||||||
|
|
||||||
|
|
||||||
(defn compile-sass->css!
|
(defn compile-sass->css!
|
||||||
"Given a directory src-sass, looks for all sass files and compiles them into
|
"Given a directory src-sass, looks for all sass files and compiles them into
|
||||||
dest-sass. Prompts you to install sass if he finds sass files and can't find
|
dest-sass. Prompts you to install sass if he finds sass files and can't find
|
||||||
the command. Shows you any problems it comes across when compiling. "
|
the command. Shows you any problems it comes across when compiling. "
|
||||||
[src-sass
|
[src-sass
|
||||||
dest-sass]
|
dest-sass]
|
||||||
|
|
||||||
(let [sass-files (find-sass-files src-sass)]
|
(let [sass-files (find-sass-files src-sass)]
|
||||||
(if (seq sass-files)
|
(if (seq sass-files)
|
||||||
;; I found sass files,
|
;; I found sass files,
|
||||||
|
|
Loading…
Reference in a new issue