scalaplayframeworkplayframework-2.3scala-2.11sbt-web

How to change compilable static (CoffeeScript, LESS) source directory in Play Framework 2.3.1?


I'm using Play Framework 2.3.1 and Scala 2.11.

I need to change LESS and CoffeeScript source directory from "app/assets" to "app/privateassets" for example.

How to change it?


Solution

  • You should be able to change it by setting sourceDirectory for the Assets config (comes with sbt-web), like this:

    import com.typesafe.sbt.web.SbtWeb.autoImport._
    
    sourceDirectory in Assets := (sourceDirectory in Compile).value / "privateassets"