Skip to content

Commit

Permalink
Add note about how to compile the app in dev vs. release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
inthar-raven committed Aug 28, 2024
1 parent a73b635 commit a356631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ A microtonal scale research app chiefly dedicated to ternary scales (scales with
1. Run `npm run serve` in the project directory.
1. Visit `http://localhost:8080/` with your browser. Your browser must support WebAssembly; all major browsers should.

By default the WASM is compiled in release mode. To compile it in development mode, make sure that the `mode` value is set to `"development"` in the project directory's `webpack.config.js` file.

# Dev scripts

1. `npm run build`: Build the app
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
crateDirectory: path.resolve(__dirname, "."),
}),
],
mode: "development",
mode: "production",
experiments: {
asyncWebAssembly: true,
},
Expand Down

0 comments on commit a356631

Please sign in to comment.