Skip to content

myguidingstar-zz/boot-autoprefixer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Boot-autoprefixer

Boot task for autoprefixer.

Autoprefixer utilizes the most recent data from Can I Use to add only necessary vendor prefixes.

Requirements

Make sure postcss-cli and autoprefixer are installed on your system.

npm install --global postcss-cli autoprefixer

Installation

http://clojars.org/danielsz/boot-autoprefixer/latest-version.svg

Usage

In build.boot, import the autoprefixer task:

(set-env! :dependencies '[[danielsz/boot-autoprefixer "0.0.2"]])
(require '[danielsz.autoprefixer :refer [autoprefixer]])

The autoprefixer task takes a vector of filenames, the CSS files you want to post-process with autoprefixer.

(task-options! autoprefixer {:files ["style-1.css" "style-2.css"]})

Autoprefixer uses Browserslist, so you can specify the browsers you want to target in your project by queries like last 2 versions or > 5%

(task-options! autoprefixer {:files ["style-1.css" "style-2.css"]
                             :browsers "last 2 versions"})

You can now compose autoprefixer in your boot pipeline like any other task.

About

Boot task for css autoprefixer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%