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:
parent
1c814cad6b
commit
74324cdab4
@ -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`.
|
||||
|
@ -24,7 +24,7 @@ module.exports = [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: ["log", "info"],
|
||||
drop_console: ["log", "debug"],
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user