I am trying to include a gulp, angular project within a play-framework 2.4.X app.
There is a node_modules folder, which contain lots of files and folders. SBT is including those files in my build process; this make my build process very slow.
So I want to exclude that and other unnecessary files and folders. My build.sbt files partial code
lazy val gulpDirectory = baseDirectory { _ / "admin-panel" }
unmanagedResourceDirectories in Assets <+= gulpDirectory
//includeFilter in Assets in unmanagedResourceDirectories := {
// new SimpleFileFilter( file =>
// file.getParent == "bower_components" ||
// file.getParent == "tmp" ||
// file.getParent == "dist"
// )
//}
includeFilter in Assets in unmanagedResourceDirectories := "bower_components" || "dist" || "tmp"
excludeFilter in Assets in unmanagedResourceDirectories := new SimpleFileFilter(_.getParent == "node_modules")
But those aren't working, and SBT including all files and folders from admin-panel folder. Can anyone help me out, as I am new to SBT.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…