我对sbt-concat在play框架2中的集成有疑问。
我使用的是sbt-concat 0.1.8
我要连接的文件位于" javascripts / libs / jquery / jquery-ui / theme / smoothness / jquery-ui.css"
这是我的build.sbt
name := """training-play"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.1"
libraryDependencies ++= Seq(
jdbc,
"mysql" % "mysql-connector-java" % "5.1.33",
"com.typesafe.slick" %% "slick" % "2.1.0",
cache,
ws
)
Concat.groups := Seq(
"libs.css" -> group(((resourceDirectory in Assets).value / "javascripts" / "libs" / "jquery" / "jquery-ui" / "theme" / "smoothness") * "*.css"),
"libs2.css" -> group(Seq("javascripts/libs/jquery/jquery-ui/theme/smoothness/jquery-ui.css"))
)
lazy val hello = taskKey[Unit]("Prints 'Hello World'")
hello := println("hello world!"+(((resourceDirectory in Assets).value / "javascripts" / "libs" / "jquery" / "jquery-ui" / "theme" / "smoothness") * "*.css"))
pipelineStages in Assets := Seq(concat)
"你好"任务告诉我,我的路径查找器指向正确的文件,但从未创建文件libs.css(libs2.css工作正常)。
有人知道如何让它正常工作吗?