A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ground5hark/sbt-css-compress below:

john-bernardo1/sbt-css-compress: sbt-web plugin for minifying/compressing CSS assets

sbt-web plugin which compresses CSS using yuicompressor.

Add the plugin to your project/plugins.sbt:

addSbtPlugin("net.ground5hark.sbt" % "sbt-css-compress" % "0.1.4")

Add the Sonatype releases resolver:

resolvers += Resolver.sonatypeRepo("releases")

Enable the sbt-web plugin for your project:

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

Add the css-compress task to your asset pipeline in your build.sbt:

pipelineStages := Seq(cssCompress)
Option Description suffix Extension to append to each compressed file. Defaults to ".min.css" parentDir Parent directory name where compressed CSS will go. Defaults to "", which outputs the file into the base target directory lineBreak Number of characters on a line before attempting to insert a line break. This is merely a hint to the compressor. Defaults to -1 (never)

An example of providing an option is below:

CssCompress.suffix := ".min.css"

This will produce assets with the specified CssCompress.suffix suffix value under the CssCompress.parentDir directory within the target folder. This will be target/web/public/main or target/web/stage. You can also specify includeFilter in cssCompress or excludeFilter in cssCompress to select files on a custom criteria.

This code is licensed under the MIT License.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4