Skip to content

Commit

Permalink
feat: serve:prod target
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoudan committed Nov 27, 2023
1 parent 7f8e275 commit d3afe5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ See https://ssoudan.github.io/web-nuts-rs/ for a live demo of a Bayesian regress

Use the devcontainer to get a ready to use environment.

To run the app in development mode, run:
```bash
npm i && npm run serve
```

Open http://localhost:8080/ to see the app.

To build the app for production, run:
```bash
npm i && npm run serve:prod
```

Either way, you can now navigate to `http://localhost:8080` to view the app.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"scripts": {
"release": "webpack -c webpack.config.js --mode production",
"build": "webpack",
"serve": "webpack serve"
"serve": "webpack serve",
"serve:prod": "webpack serve --mode production"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "1.7.0",
Expand All @@ -17,4 +18,4 @@
"dependencies": {
"wasm-pack": "^0.0.0"
}
}
}

0 comments on commit d3afe5d

Please sign in to comment.