diff --git a/browser/main.js b/browser/main.js index d3a1bf7b2d..4ecb4688c8 100644 --- a/browser/main.js +++ b/browser/main.js @@ -32,7 +32,6 @@ var windowOptions = { }; app.on('activate-with-no-open-windows', function () { - var mainWindow = new BrowserWindow(windowOptions); if (mainWindow) { mainWindow.show(); } diff --git a/gulpfile.js b/gulpfile.js index be42980fb4..44681639be 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,10 +34,10 @@ gulp.task('js', function () { // emit the end event, to properly end the task this.emit('end'); })) - .pipe(sourcemaps.init()) + .pipe(gulpif(options.dev || options.test, sourcemaps.init())) .pipe(react()) .pipe(to5({blacklist: ['regenerator']})) - .pipe(sourcemaps.write('.')) + .pipe(gulpif(options.dev || options.test, sourcemaps.write('.'))) .pipe(gulp.dest((options.dev || options.test) ? './build' : './dist/osx/' + options.filename + '/Contents/Resources/app/build')) .pipe(gulpif(options.dev, livereload())); });