You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have some exposed option like terserOptions.drop_console to remove all of the console.log via next.config.js
config.experimental
Is your feature request related to a problem? Please describe.
The production build of the site that I am working with the team have quite significant portion of console.log for debugging and we want it to be shown on staging environment, except for production environment that need to disable all the logs.
This discussion was converted from issue #14551 on April 12, 2021 11:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
I would like to have some exposed option like
terserOptions.drop_console
to remove all of the console.log vianext.config.js
config.experimental
Is your feature request related to a problem? Please describe.
The production build of the site that I am working with the team have quite significant portion of console.log for debugging and we want it to be shown on staging environment, except for production environment that need to disable all the logs.
Describe the solution you'd like
Describe alternatives you've considered
Maybe expose entire terserOption that can be spread into the object?
Beta Was this translation helpful? Give feedback.
All reactions