(compile {c :compiler
t-dir :target-dir
s-dirs :source-dirs
watch :watch
:or
{c (compiler config) t-dir "target/" s-dirs (util/get-source-dirs)}
:as config})
Compiles sass source to css targets.
:target-dir - Directory to output css forest :source-dirs - Source directories where to look for sass source files :watch - Boolean, start watch process if true, Compile once and return if false :compiler - [Optional] SassCompiler to use for compilation, if not provided, a default one will be made
Options passed to the default compiler:
:output-style - Either :expanded or :compressed, default [:compressed] :source-maps - Whether to generate source maps, boolean, default [false]
Compiles sass source to css targets. :target-dir - Directory to output css forest :source-dirs - Source directories where to look for sass source files :watch - Boolean, start watch process if true, Compile once and return if false :compiler - [Optional] SassCompiler to use for compilation, if not provided, a default one will be made Options passed to the default compiler: :output-style - Either :expanded or :compressed, default [:compressed] :source-maps - Whether to generate source maps, boolean, default [false]
(compile-result compiler file)
Compiles file returns CompileSuccess obj. Ex: (io/resource META-INF/resources/webjars/bootstrap/5.1.3/scss/bootstrap.scss)
Compiles file returns CompileSuccess obj. Ex: (io/resource META-INF/resources/webjars/bootstrap/5.1.3/scss/bootstrap.scss)
(compile-str compiler s)
Compiles sass string to css string.
Compiles sass string to css string.
(compiler config)
Returns a compiler instance. Config options:
:output-style - Either :expanded or :compressed, default [:compressed] :source-maps - Whether to generate source maps, boolean, default [false]
Returns a compiler instance. Config options: :output-style - Either :expanded or :compressed, default [:compressed] :source-maps - Whether to generate source maps, boolean, default [false]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close