Skip to content

Commit d86cc1c

Browse files
committed
Added configuration "Compile" to command that sets mainClass.
Also added a bit of explanation and links to two relevant Stack Overflow questions.
1 parent 6e1620a commit d86cc1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/project/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ You can run your code and tests in fullOpt stage with the following command:
7676

7777
If you want the code which is used to run the main class to be written to a file, you can set `persistLauncher := true`.
7878
Note that this will require your main class to be either unique or explicitly set (`mainClass in Compile := Some(<name>)`).
79-
If you explicitly set `mainClass`, note that it needs to be set on a per-configuration basis (i.e. the part `in Compile` is essential else the setting will be ignored). For further detail see [Stack overflow entry 'How to set mainClass in ScalaJS build.sbt?'](http://stackoverflow.com/questions/34965072/how-to-set-mainclass-in-scalajs-build-sbt) (specific to Scala.js) and [Stack Overflow entry 'How to set main class in build?'](http://stackoverflow.com/questions/6467423/how-to-set-main-class-in-build) (not specific to Scala.js).
79+
If you explicitly set `mainClass`, note that it needs to be set on a per-configuration basis (i.e. the part `in Compile` is essential, otherwise the setting will be ignored). For further information see the Stack Overflow entry ['How to set mainClass in ScalaJS build.sbt?'](http://stackoverflow.com/questions/34965072/how-to-set-mainclass-in-scalajs-build-sbt) (specific to Scala.js) and the Stack Overflow entry ['How to set main class in build?'](http://stackoverflow.com/questions/6467423/how-to-set-main-class-in-build) (not specific to Scala.js).
8080

8181
The resulting file in the target folder will have the suffix `-launcher.js`.

0 commit comments

Comments
 (0)