|
|
@ -112,7 +112,7 @@ if (process.env.minifier_child) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
process.send({
|
|
|
|
process.send({
|
|
|
|
type: 'error',
|
|
|
|
type: 'error',
|
|
|
|
message: err.stack,
|
|
|
|
message: err.stack || err.message || 'unknown error',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -277,7 +277,7 @@ function buildCSS(data, callback) {
|
|
|
|
from: undefined,
|
|
|
|
from: undefined,
|
|
|
|
}).then(function (result) {
|
|
|
|
}).then(function (result) {
|
|
|
|
process.nextTick(callback, null, { code: result.css });
|
|
|
|
process.nextTick(callback, null, { code: result.css });
|
|
|
|
}, function (err) {
|
|
|
|
}).catch(function (err) {
|
|
|
|
process.nextTick(callback, err);
|
|
|
|
process.nextTick(callback, err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|