Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Play Framework 2.3.1 和 Scala 2.11。
例如,我需要将 LESS 和 CoffeeScript 源目录从“app/assets”更改为“app/privateassets”。
如何改变它?
您应该能够通过设置配置(与 sbt-web 一起提供)来更改它sourceDirectory,Assets如下所示:
sourceDirectory
Assets
import com.typesafe.sbt.web.SbtWeb.autoImport._ sourceDirectory in Assets := (sourceDirectory in Compile).value / "privateassets"