please make sure your public folder stuff or node_modules are not
being compiled, because if they will compile with ur application
you'll be stuck like that always.
steps you can also follow ->
> stop play
> delete folder where your code compiles. There will be also a node_module folder that will be taking time too much.
> Again compile it with clean, but make sure in your compiled file, node modules folder is not being compiled.
In build.sbt, (This is just a way to do these stuff, the syntax might change in different version of play framework)
import play.sbt.PlayImport.PlayKeys.playRunHooks
lazy val gulpDirectory = baseDirectory {
_ / "admin-panel"
}
excludeFilter := HiddenFileFilter -- ".tmp"
unmanagedResourceDirectories in Assets <+= gulpDirectory { _ / "dist"}
unmanagedResourceDirectories in Assets <+= gulpDirectory { _ / ".tmp"}
unmanagedResourceDirectories in Assets <+= gulpDirectory { _ / "bower_components"}
//this is for development environment
unmanagedResourceDirectories in Assets <+= gulpDirectory { _ / "src" / "app"}
playRunHooks <+= gulpDirectory.map(path => Gulp(path))
If this is not working, we can try this as well.
mappings in (Compile, packageBin) ~= { _.filterNot { case (_, name) =>
name.startsWith("public\\node_modules")
}}
you can also visit the link
https://www.playframework.com/documentation/2.4.x/SBTCookbook