From a356631332c9cdb0064c2f999cf2903ded24839a Mon Sep 17 00:00:00 2001 From: inthar-raven Date: Wed, 28 Aug 2024 12:29:15 -0400 Subject: [PATCH] Add note about how to compile the app in dev vs. release mode --- README.md | 2 ++ webpack.config.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 70edb6d7..e175b155 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/webpack.config.js b/webpack.config.js index 080cf4d4..231e6303 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,7 +17,7 @@ module.exports = { crateDirectory: path.resolve(__dirname, "."), }), ], - mode: "development", + mode: "production", experiments: { asyncWebAssembly: true, },