sbt-web plugin which integrates with Google’s Closure Compiler.
Add the plugin to your project/plugins.sbt
(for sbt 0.13.5+ and 1.x):
addSbtPlugin("eu.sipria.sbt" % "sbt-closure" % "1.1.1")
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 closure
task to your asset pipeline in your build.sbt
:
pipelineStages := Seq(closure)
This code is licensed under the MIT License.