【问题标题】:Play Framework sbt-concat does not work with wildcard settingPlay Framework sbt-concat 不适用于通配符设置
【发布时间】:2014-09-08 02:32:59
【问题描述】:
我试图将所有 css 捆绑在一个目录及其子目录下。但是,我发现只有指定目录的直接级别下的文件会被捆绑,而不会捆绑子目录中的文件。
然后,我尝试了类似的方法来表明它适用于所有内容,包括
"lib.css" -> group(((资产中的sourceDirectory).value / "css" / "core" / "lib") * "**/*.css")
这对我不起作用。
我已经在 github 上提出了一个问题,希望它会尽快修复。但是,我想知道那里是否有人已经有了解决方案,如果他可以分享,那就太好了。
https://github.com/ground5hark/sbt-concat/issues/8
【问题讨论】:
标签:
playframework
playframework-2.3
sbt-web
sbt-concat
【解决方案1】:
您正在使用/。你可能想要**。
查看PathFinder docs:
def /(literal: String): PathFinder
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.
def **(filter: FileFilter): PathFinder
Constructs a new finder that selects all paths with a name that matches filter and are descendants of paths selected by this finder.
所以你可能想要这样的东西:
(sourceDirectory in Assets).value / "css" / "core" / "lib" ** "*.css"