mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-11-16 07:47:48 +01:00
fix copying files from examples
This commit is contained in:
parent
26dde04c3c
commit
683a6a5272
1 changed files with 6 additions and 2 deletions
|
@ -11,6 +11,10 @@ exports.onCreateDevServer = ({ app }) => {
|
|||
};
|
||||
|
||||
// Copy examples to the public folder
|
||||
exports.onPostBuild = () => {
|
||||
fs.copy('content/examples', 'public/examples/');
|
||||
exports.onPostBuild = async () => {
|
||||
try {
|
||||
await fs.copy('content/examples', 'public/examples/');
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue