A Leiningen plugin to use Autoprefixer.
You must have autoprefixer
and postcss-cli
installed via lein-npm
or :npm-deps
.
In your project.clj set the :src
to the path of the css and an optional :browser
using the browserslist format:
:autoprefixer {:src "resources/public/css"
;; optional
:browsers "> 1%, Last 2 versions"}
Then run the command:
$ lein autoprefixer
Or make an alias in your project.clj, this runs sass then autoprefixer:
:aliases {"cssbuild" ["do" ["sass" "once"] "autoprefixer"]}
Copyright © 2019
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close