Skip to content

Instantly share code, notes, and snippets.

@rtfpessoa
Created May 20, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtfpessoa/a4206395f9e03efde147 to your computer and use it in GitHub Desktop.
Save rtfpessoa/a4206395f9e03efde147 to your computer and use it in GitHub Desktop.
PlayFramework UI Settings
val uiSettings: Seq[Def.Setting[_]] = Seq(
JsEngineKeys.engineType := JsEngineKeys.EngineType.Node,
includeFilter in gzip := "*.html" || "*.css" || "*.js",
DigestKeys.algorithms += "sha1",
includeFilter in digest := "*.html" || "*.css" || "*.js",
UglifyKeys.mangle := false,
pipelineStages := Seq(uglify, digest, gzip),
LessKeys.compress in Assets := true,
includeFilter in(Assets, LessKeys.less) := "*.less",
excludeFilter in(Assets, LessKeys.less) := "_*.less"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment