We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
Process
afterStarted()
import scala.sys.process.Process def apply(base: File): PlayRunHook = { object WebpackServerScript extends PlayRunHook { var process: Option[Process] = None val isWin: Boolean = System.getProperty("os.name").toUpperCase().indexOf("WIN") >= 0 val config: Config = ConfigFactory.parseFile(new File("conf/application.conf")).resolve() val npmCommand: String = config.getString("npm.command") override def afterStarted(): Unit = { process = if (isWin) Option(Process(s"cmd /c $npmCommand run serve", base).run) else Option(Process(s"""$npmCommand run serve""", base).run) } override def afterStopped(): Unit = { process.foreach(p => { p.destroy() }) process = None } } WebpackServerScript }
Sorry, something went wrong.
Update https://github.com/jiyuujin/resources-api
No branches or pull requests
The text was updated successfully, but these errors were encountered: