Skip to content
Permalink
Browse files

Be better at turning off notifications and fix linter

  • Loading branch information...
Thomas101 committed May 15, 2019
1 parent 2fde0b1 commit f498cef5bb2ecffb49897a81379bebca34d17559
Showing with 5 additions and 5 deletions.
  1. +4 −4 webpack.config.js
  2. +1 −1 webpack/DevTools.js
@@ -32,12 +32,12 @@ module.exports = function (env = {}) {
}
}

if (env.disableNotify) {
if (env.enableNotify) {
console.log('[NOTIFICATIONS ENABLED]')
process.env.NOTIFICATIONS = 'true'
} else {
console.log('[NOTIFICATIONS DISABLED]')
process.env.NOTIFICATIONS = 'false'
} else {
console.log('[NOTIFICATIONS_ENABLED]')
process.env.NOTIFICATIONS = 'true'
}

if (env.verbose) {
@@ -39,7 +39,7 @@ module.exports = function (name, env, config) {
// Plugins
config.plugins = config.plugins || []
if (isNotifications) {
// config.plugins.push(new WebpackNotifierPlugin({ title: name, alwaysNotify: true }))
config.plugins.push(new WebpackNotifierPlugin({ title: name, alwaysNotify: true }))
}

if (isSingleTask(env)) {

0 comments on commit f498cef

Please sign in to comment.
You can’t perform that action at this time.