@ -122,15 +122,11 @@ Loader.addWorkerEvents = function(worker) {
Loader.reload();
break;
case 'js-propagate':
Loader.js.target[message.target] = Loader.js.target[message.target] || {};
Loader.js.target[message.target].cache = message.cache;
Loader.js.target[message.target].map = message.map;
Loader.js.target = message.data;
Loader.notifyWorkers({
action: 'js-propagate',
cache: message.cache,
map: message.map,
target: message.target
data: message.data
}, worker.pid);
case 'css-propagate':
@ -112,12 +112,10 @@ module.exports = function(Meta) {
winston.verbose('[meta/js] ' + target + ' minification complete');
minifier.kill();
if (process.send) {
if (process.send && Meta.js.target.length > 1) {
process.send({
cache: Meta.js.target[target].cache,
map: Meta.js.target[target].map,
target: target
data: Meta.js.target
});
}