Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. val commonSettings = Seq(
  2. name := "repro",
  3. version := "1.0",
  4. scalaVersion := "2.12.8",
  5. unmanagedSourceDirectories in Compile +=
  6. baseDirectory.value / ".." / "shared" / "src" / "main" / "scala"
  7. )
  8. val client = project.in(file("client"))
  9. .settings(commonSettings: _*)
  10. .settings(
  11. npmDependencies in Compile ++= Seq(
  12. "font-awesome" -> "4.7.0",
  13. ),
  14.  
  15. mainClass in Compile := Some("app.App"),
  16.  
  17. scalaJSUseMainModuleInitializer := true,
  18.  
  19. webpackBundlingMode := BundlingMode.LibraryOnly(),
  20. )
  21. .enablePlugins(ScalaJSPlugin)
  22. .enablePlugins(ScalaJSBundlerPlugin)
  23.  
  24. val server = project.in(file("server"))
  25. .settings(commonSettings: _*)
  26. .settings(
  27. npmAssets ++= NpmAssets.ofProject(client) { nodeModules =>
  28. (nodeModules / "font-awesome").allPaths
  29. }.value
  30. )
  31. .enablePlugins(WebScalaJSBundlerPlugin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement