1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 05:43:52 +03:00

log embed errors

This commit is contained in:
Sérgio Ramos 2016-10-26 14:03:23 +01:00
parent d2124638ba
commit c182bc2e76
2 changed files with 4 additions and 5 deletions

View File

@ -19,9 +19,7 @@ const plugins = {
require('postcss-cssnext')()
]
},
'embed-markdown-loader': {
mode: 'plain'
}
'embed-markdown-loader': {}
}
})
};

View File

@ -67,13 +67,14 @@ module.exports = ({
compiler.run((err, stats) => {
if (err) {
return fn(err);
return fn(err, {});
}
const errors = stats.toJson().errors;
if (errors && errors.length) {
return fn(errors);
errors.map(err => console.log(err));
return fn(errors, {});
}
mfs.readFile(`/static/${name}`, (err, res) => {