Skip to content

Instantly share code, notes, and snippets.

View terebentina's full-sized avatar

Dan Caragea terebentina

View GitHub Profile
window.addEventListener("blur", function () {
if (me.sys.stopOnBlur) {
me.state.stop(true);
}
if (me.sys.pauseOnBlur) {
// terebentina
me.sys.pauseOnBlurContext = me.state.isPaused(); // save the current isPaused state so we know what to resume to
me.state.pause(true);
}
}, false);
"use strict";
var path = require('path' ),
webpack = require('webpack')
;
var _DEV_ = true;
var config = {
entry: {