-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
35 lines (32 loc) · 1.1 KB
/
Copy pathbuild.sbt
File metadata and controls
35 lines (32 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import org.scalajs.linker.interface.ModuleSplitStyle
ThisBuild / scalaVersion := ScalaVersions.v213
//ThisBuild / scalaVersion := ScalaVersions.v3
lazy val basicSettings = Seq(
scalacOptions ~= (_.filterNot(
Set(
"-Wdead-code",
"-Wunused:implicits",
"-Wunused:explicits",
"-Wunused:imports",
"-Wunused:params"
)
))
)
lazy val root = project
.in(file("website"))
.enablePlugins(ScalaJSPlugin, EmbeddedFilesPlugin)
.settings(basicSettings)
.settings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) },
scalaJSLinkerConfig ~= { _.withModuleSplitStyle(ModuleSplitStyle.FewestModules) },
scalaJSLinkerConfig ~= { _.withSourceMap(true) },
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"com.raquo" %%% "laminar" % "0.13.0",
"io.frontroute" %%% "frontroute" % "0.13.2",
"io.laminext" %%% "core" % "0.13.4",
"com.yurique" %%% "embedded-files-macro" % "0.2.4"
),
embedTextGlobs := Seq("**/*.md"),
(Compile / sourceGenerators) += embedFiles
)