Skip to content

Commit ae64ee3

Browse files
committed
FIX #699 add recipe for scalajs packaging
1 parent 9789e97 commit ae64ee3

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

src/sphinx/recipes/index.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ This section provides recipes for common configurations. If you can't find what
1010
.. toctree::
1111
:maxdepth: 1
1212

13-
custom.rst
14-
longclasspath.rst
15-
play.rst
16-
deployment.rst
13+
custom
14+
longclasspath
15+
play
16+
deployment
17+
scalajs
1718

1819

1920

src/sphinx/recipes/scalajs.rst

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.. _scalajs:
2+
3+
Scala JS packaging
4+
==================
5+
6+
.. warning:: This is no official scala js doc, but created from the native-packager community.
7+
See `issue-699`_.
8+
9+
Package webjars and scalajs resources
10+
-------------------------------------
11+
12+
In order to package all assets correctly, add this to your project
13+
14+
.. code-block:: scala
15+
16+
(managedClasspath in Runtime) += (packageBin in previewJVM in Assets).value
17+
18+
19+
.. _issue-699: https://github.com/sbt/sbt-native-packager/issues/699

0 commit comments

Comments
 (0)