Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 880 Bytes

README.textile

File metadata and controls

24 lines (14 loc) · 880 Bytes

Yui Compressor Plugin for SBT

simple-build-tool plugin to minify CSS and JS files in a web project using
Yahoo’s Yui Compressor

SBT is the scala based build tool with smart continuous compilation and a dsl syntax

This plugin was heavily influenced by David Bernard’s Yui compressor plugin for maven:
davidB/yuicompressor-maven-plugin

Usage

Check out the “Use the Plugin” section of the SbtPlugins Howto

In your Plugins.scala:

instead of

 val a = … 
do
 val sbtYui = “hoffrocket” % “sbt-yui” % “0.2.1”

Mix in to your project definition:


  class MyWebProject(info: ProjectInfo) extends DefaultWebProject(info) with hoffrocket.YuiCompressorPlugin ...