diff --git a/src/List/ContextActions.js b/src/List/ContextActions.js index b243b9377..23e6f7747 100644 --- a/src/List/ContextActions.js +++ b/src/List/ContextActions.js @@ -85,7 +85,6 @@ contextActions.sharing return d2.models[model.modelDefinition.name].get(model.id); }) .then(modelToShare => { - console.log(modelToShare); sharingStore.setState({ model: modelToShare, open: true, diff --git a/src/maintenance.js b/src/maintenance.js index ecbfadeed..ebf11c683 100644 --- a/src/maintenance.js +++ b/src/maintenance.js @@ -15,7 +15,11 @@ import log from 'loglevel'; import LoadingMask from './loading-mask/LoadingMask.component'; import dhis2 from 'd2-ui/lib/header-bar/dhis2'; -log.setLevel(log.levels.DEBUG); +if (process.env.NODE_ENV !== 'production') { + log.setLevel(log.levels.DEBUG); +} else { + log.setLevel(log.levels.ERROR); +} const routeActions = Action.createActionsFromNames(['transition']); diff --git a/webpack-base-config.js b/webpack-base-config.js index 8acc79f0c..c067fc791 100644 --- a/webpack-base-config.js +++ b/webpack-base-config.js @@ -33,18 +33,6 @@ module.exports = { }, plugins: [ new webpack.optimize.DedupePlugin(), - //new webpack.optimize.UglifyJsPlugin({ - // minimize: true, - // compress: { - // warnings: false - // }, - //}), - //new webpack.optimize.OccurenceOrderPlugin(), - //new webpack.ProvidePlugin({ - // $: "jquery", - // jQuery: "jquery", - // "window.jQuery": "jquery" - //}), ], devtool: ['sourcemap'], };