Skip to content

Instantly share code, notes, and snippets.

@hexx
Created June 22, 2012 06:39
Show Gist options
  • Save hexx/2970811 to your computer and use it in GitHub Desktop.
Save hexx/2970811 to your computer and use it in GitHub Desktop.
A part of PlayAssetsCompiler.scala
// Name: name of the compiler
// files: the function to find files to compile from the assets directory
// naming: how to name the generated file from the original file and whether it should be minified or not
// compile: compile the file and return the compiled sources, the minified source (if relevant) and the list of dependencies
def AssetsCompiler(name: String,
watch: File => PathFinder,
filesSetting: sbt.SettingKey[PathFinder],
naming: (String, Boolean) => String,
compile: (File, Seq[String]) => (String, Option[String], Seq[File]),
optionsSettings: sbt.SettingKey[Seq[String]]) =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment