diff --git a/README.md b/README.md index e41039f..ec49a11 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A [Vite](https://vitejs.dev/) plugin for [Scala.js](https://www.scala-js.org/). ## Usage We assume that you have an existing Vite and Scala.js sbt project. -If not, [follow the accompanying tutorial](https://github.com/scala-js/scala-js-website/pull/590). +If not, [follow the accompanying tutorial](https://www.scala-js.org/doc/tutorial/scalajs-vite.html). Install the plugin as a development dependency: @@ -44,6 +44,13 @@ scalaJSLinkerConfig ~= { }, ``` +In development mode, use two terminals in parallel: + +* One with `$ npm run dev`. +* One with `$ sbt '~fastLinkJS'` (or a more precise version such as `$ sbt '~theJSProject/fastLinkJS`). + +For the production build, `$ npm run build` is enough. + ## Configuration The plugin supports the following configuration options: