boolean | ConsoleType[]falseWhether to remove console.[methodName] in production build.
When removeConsole is set to true, all types of console.[methodName] are removed:
export default {
performance: {
removeConsole: true,
},
};You can also specify to remove only certain types of console.[methodName], such as console.log and console.warn:
export default {
performance: {
removeConsole: ['log', 'warn'],
},
};The following types of console are currently supported:
type ConsoleType = 'log' | 'info' | 'warn' | 'error' | 'table' | 'group';