Skip to content

Commit f913939

Browse files
committed
Restore separate index files
1 parent 69208bc commit f913939

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

example/build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ val generatedGlobalDir = file("generated/global")
3131
val compileStatics = taskKey[Unit]("Compiles all static files.")
3232
val copyAssets = taskKey[Unit]("Copies all assets to the target directory.")
3333

34-
lazy val root: Project = project.in(file("."))
34+
lazy val root = project.in(file("."))
3535
.aggregate(`jquery-bundler-demo`, `jquery-global-demo`)
3636
.settings(
3737
crossScalaVersions := Nil,
@@ -59,7 +59,7 @@ lazy val `jquery-global-demo` = project.in(file("global-demo"))
5959

6060
copyAssets := {
6161
IO.copyFile(
62-
root.base / "src/main/assets/index.html",
62+
sourceDirectory.value / "main/assets/index.html",
6363
generatedGlobalDir / "index.html"
6464
)
6565
},
@@ -88,7 +88,7 @@ lazy val `jquery-bundler-demo` = project.in(file("bundler-demo"))
8888

8989
copyAssets := {
9090
IO.copyFile(
91-
root.base / "src/main/assets/index.html",
91+
sourceDirectory.value / "main/assets/index.html",
9292
generatedBundlerDir / "index.html"
9393
)
9494
},
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head lang="en">
4+
<meta charset="UTF-8">
5+
<title>jquery-demo - ScalaJSBundlerPlugin demo</title>
6+
</head>
7+
<body>
8+
<div id="application"></div>
9+
10+
<script src="scripts/frontend.js"></script>
11+
<script src="scripts/frontend-deps.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)