mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
issue #1022 - quiet logs on production mode
This commit is contained in:
+4
-2
@@ -214,12 +214,14 @@ if (process.env.NODE_ENV === 'production') {
|
||||
toplevel: false,
|
||||
typeofs: false,
|
||||
unused: false,
|
||||
|
||||
// Switch off all types of compression except those needed to convince
|
||||
// react-devtools that we're using a production build
|
||||
conditionals: true,
|
||||
dead_code: true,
|
||||
evaluate: true,
|
||||
// Remove warnings + discard any console.* functions
|
||||
warnings: false,
|
||||
drop_console: true
|
||||
},
|
||||
mangle: true,
|
||||
},
|
||||
@@ -353,7 +355,7 @@ module.exports = [
|
||||
if (targets.length === 0) {
|
||||
throw new Error(
|
||||
`target plugin ${
|
||||
plugin.name
|
||||
plugin.name
|
||||
} has no targets in it's target folder ${folder}`
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user