Skip to content

ModMountain/sbt-autoprefixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-autoprefixer

sbt-web plugin that uses Autoprefixer to parse CSS and add vendor prefixes to CSS rules using values from Can I Use.

Prerequisites

Setup

sbt-autoprefixer is not currently on Maven central or another repository. I plan to resolve this in the next week or two but for the time being, please install sbt-autoprefixer locally. To do this, run the following commands in order:

git clone https://github.com/ModMountain/sbt-autoprefixer.git
cd sbt-autoprefixer
sbt clean publishLocal

Once you have published sbt-autoprefixer locally, install PostCSS and Autoprefixer:

npm install --global postcss autoprefixer postcss-cli

If you have trouble running this command, try running the command as a super user.

Once installed, make sure your project's build file has sbt-web enabled:

lazy val root = (project.in file(".")).enablePlugins(SbtWeb)

Finally, add sbt-autoprefixer to the sbt-web asset pipeline:

pipelineStages := Seq(autoprefixer)

Configuration

Currently there are no configuration options. I plan to add some in the future but for now you are stuck with Autoprefixer's defaults.

Credit

sbt-autoprefixer: Without this existing, I wouldn't have created my own version

sbt-gzip: Easy to read code that let me figure out how sbt-web pipeline plugins work

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages