||8 months ago|
|assets||8 months ago|
|project||9 months ago|
|src||8 months ago|
|.gitignore||9 months ago|
|.scalafmt.conf||9 months ago|
|README.md||9 months ago|
|build.sbt||8 months ago|
|webpack.config.common.js||9 months ago|
|webpack.config.dev.js||9 months ago|
|webpack.config.prod.js||9 months ago|
|yarn.lock||8 months ago|
You should make sure that the following components are pre-installed on your machine:
Create a module
in sbt shell:
Working in dev mode
In sbt shell, run
dev. Then open
http://localhost:8080/ in your browser.
This sbt-task will start webpack dev server, compile your code each time it changes
and auto-reload the page.
webpack dev server will close automatically when you stop the
(e.g by hitting
Enter in the sbt shell while you are in
dev watch mode).
If you existed ungracefully and your webpack dev server is still open (check with
ps -aef | grep -v grep | grep webpack),
you can close it by running
fastOptJS::stopWebpackDevServer in sbt.