GithubHelp home page GithubHelp logo

ucroo / sbt-autoprefixer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthewrennie/sbt-autoprefixer

0.0 3.0 0.0 8 KB

sbt-web plugin that adds vendor-specific prefixes to CSS using Autoprefixer

License: Other

Scala 98.22% CSS 1.78%

sbt-autoprefixer's Introduction

sbt-autoprefixer

sbt-web plugin that uses Autoprefixer to post-process CSS and add vendor prefixes to rules by Can I Use.

To use the latest version from Github, add the following to the project/plugins.sbt of your project:

    lazy val root = project.in(file(".")).dependsOn(sbtAutoprefixer)
    lazy val sbtAutoprefixer = uri("git://github.com/matthewrennie/sbt-autoprefixer")

Your project's build file also needs to enable sbt-web plugins. For example with build.sbt:

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

Declare the execution order of the asset pipeline:

pipelineStages in Assets := Seq(autoprefixer)

The following option are supported:

Option Description
cascade Creates nice visual cascade of prefixes. Default: true.
sourceMap Enables source maps. Default: true.
inlineSourceMap Enables inline source maps by data:uri to annotation comment. Default: false.

The following sbt code illustrates how to include inline source maps

AutoprefixerKeys.inlineSourceMap in Assets := true

To include all CSS files for post processing

includeFilter in autoprefixer := GlobFilter("*.css"),

If you receive duplicate map errors when using incombination with LESS, turn sourceMapping off

sbt-autoprefixer's People

Contributors

matthewrennie avatar chrishagan avatar mrerrormessage avatar

Watchers

 avatar James Cloos avatar Liam Davis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.