Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val commonSettings = Seq(
- name := "repro",
- version := "1.0",
- scalaVersion := "2.12.8",
- unmanagedSourceDirectories in Compile +=
- baseDirectory.value / ".." / "shared" / "src" / "main" / "scala"
- )
- val client = project.in(file("client"))
- .settings(commonSettings: _*)
- .settings(
- npmDependencies in Compile ++= Seq(
- "font-awesome" -> "4.7.0",
- ),
- mainClass in Compile := Some("app.App"),
- scalaJSUseMainModuleInitializer := true,
- webpackBundlingMode := BundlingMode.LibraryOnly(),
- )
- .enablePlugins(ScalaJSPlugin)
- .enablePlugins(ScalaJSBundlerPlugin)
- val server = project.in(file("server"))
- .settings(commonSettings: _*)
- .settings(
- npmAssets ++= NpmAssets.ofProject(client) { nodeModules =>
- (nodeModules / "font-awesome").allPaths
- }.value
- )
- .enablePlugins(WebScalaJSBundlerPlugin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement