Skip to content

Instantly share code, notes, and snippets.

View jivane-perich's full-sized avatar

jivane-perich

View GitHub Profile
/**
* loadData.js
*
* An utility file adapted from https://github.com/vuejs/blog/blob/master/.vitepress/getPosts.js
*
* Main change : reload posts if a change has been detected on a watched directory.
*
* The update is triggered by using 'touch' the config.js file
*
* Note : this file is located in a `utils` subfolder of the `.vitepress` folder, change the path to conform to your setup.