- Create a
run-plugin.sh
somewhere in your project - Copy the code from the
run-plugin.sh
file in this gist - Install nodemon with
yarn add --dev nodemon
- Add a script in the
scripts
property of yourpackage.json
replacingPLUGIN_CODE_FOLDER
by the path to the folder where your plugin code lives"scripts": {
"livereload": "nodemon --watch PLUGIN_CODE_FOLDER --exec run-plugin.sh"