mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
log embed errors
This commit is contained in:
parent
d2124638ba
commit
c182bc2e76
@ -19,9 +19,7 @@ const plugins = {
|
||||
require('postcss-cssnext')()
|
||||
]
|
||||
},
|
||||
'embed-markdown-loader': {
|
||||
mode: 'plain'
|
||||
}
|
||||
'embed-markdown-loader': {}
|
||||
}
|
||||
})
|
||||
};
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user