我试图将所有css捆绑在一个目录及其子目录下。但是,我发现只有指定目录的直接级别下的文件才会被绑定,而不是子目录中的文件。
然后,我尝试了这样的东西来表明它适用于所有东西,包括"lib.css"->group((资产中的源目录).value/"css"/"core"/"lib")*"**/*.css")这对我不起作用。
我已经在github中发现了一个问题,我希望它能很快得到解决。然而,我想知道是否有人已经有了解决方案,如果他能分享,那就太好了。https://github.com/ground5hark/sbt-concat/issues/8
您使用的是/
。您可能想要**
。
查看PathFinder
文档:
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"