[英]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. 我正在使用Play Framework 2.3.1和Scala 2.11。
I need to change LESS and CoffeeScript source directory from "app/assets" to "app/privateassets" for example. 例如,我需要将LESS和CoffeeScript源目录从“ app / assets”更改为“ app / privateassets”。
How to change it? 怎么改变呢?
You should be able to change it by setting sourceDirectory
for the Assets
config (comes with sbt-web), like this: 您应该能够通过为
Assets
配置(与sbt-web一起提供)设置sourceDirectory
来更改它,如下所示:
import com.typesafe.sbt.web.SbtWeb.autoImport._
sourceDirectory in Assets := (sourceDirectory in Compile).value / "privateassets"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.