issue #1022 - quiet logs on production mode

This commit is contained in:
Nicolas Ferro
2018-02-22 19:17:26 -03:00
parent 24b3980423
commit 083b8638e8
+4 -2
View File
@@ -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}`
);
}