File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: Scala.js project structure
4
4
---
5
5
6
6
7
- Scala.js comes with an sbt plugin that facilitates compiling, running and testing with Scala.js. For a quick start,
7
+ Scala.js comes with an sbt plugin that facilitates compiling, running and testing with Scala.js. For a quick start,
8
8
have a look at our [ basic tutorial] ( ../tutorial/basic/ ) .
9
9
10
10
Load the sbt plugin (` project/plugins.sbt ` )
@@ -16,8 +16,13 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "{{ site.versions.scalaJS }}")
16
16
Enable the plugin on the sbt project (` build.sbt ` ):
17
17
18
18
{% highlight scala %}
19
- lazy val root = project.
20
- enablePlugins(ScalaJSPlugin)
19
+ lazy val root = project
20
+ .in(file("."))
21
+ .enablePlugins(ScalaJSPlugin)
22
+ .settings(
23
+ // for an application with a main method
24
+ scalaJSUseMainModuleInitializer := true,
25
+ )
21
26
{% endhighlight %}
22
27
23
28
If you are using a ` Build.scala ` definition, import the following:
You can’t perform that action at this time.
0 commit comments