build: Discard console debug in frontend production build (#2775)

Discards `console.debug` and allows `console.info` and documents in UI
development guide.
This commit is contained in:
sua yoo 2025-07-28 23:03:24 -07:00 committed by GitHub
parent 1c814cad6b
commit 74324cdab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -130,3 +130,7 @@ To run tests in multiple browsers:
```sh
yarn test --browsers chromium firefox webkit
```
## Logging
Calls to `console.log()` and `console.debug()` are discarded by default in production, as configured in `frontend/webpack.prod.js`.

View File

@ -24,7 +24,7 @@ module.exports = [
new TerserPlugin({
terserOptions: {
compress: {
drop_console: ["log", "info"],
drop_console: ["log", "debug"],
},
},
}),