mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
log embed errors
This commit is contained in:
parent
d2124638ba
commit
c182bc2e76
@ -19,9 +19,7 @@ const plugins = {
|
|||||||
require('postcss-cssnext')()
|
require('postcss-cssnext')()
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'embed-markdown-loader': {
|
'embed-markdown-loader': {}
|
||||||
mode: 'plain'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
@ -67,13 +67,14 @@ module.exports = ({
|
|||||||
|
|
||||||
compiler.run((err, stats) => {
|
compiler.run((err, stats) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return fn(err);
|
return fn(err, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
const errors = stats.toJson().errors;
|
const errors = stats.toJson().errors;
|
||||||
|
|
||||||
if (errors && errors.length) {
|
if (errors && errors.length) {
|
||||||
return fn(errors);
|
errors.map(err => console.log(err));
|
||||||
|
return fn(errors, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
mfs.readFile(`/static/${name}`, (err, res) => {
|
mfs.readFile(`/static/${name}`, (err, res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user