Optimizing JS from WebJars using sbt-rjs in a Play 2.3.x app

I am using Play 2.4.3.

Added addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7") to plugins.sbt

// rjs = RequireJS, uglifies, shrinks to one file, replaces WebJars with CDN
client accepts them
pipelineStages := Seq(rjs, digest, gzip)

This in my build.sbt does all the shrinking work etc. to bower JS, and webjars.

Leave a Comment