- Create a
run-plugin.shsomewhere in your project - Copy the code from the
run-plugin.shfile in this gist - Install nodemon with
yarn add --dev nodemon - Add a script in the
scriptsproperty of yourpackage.jsonreplacingPLUGIN_CODE_FOLDERby the path to the folder where your plugin code lives"scripts": {
"livereload": "nodemon --watch PLUGIN_CODE_FOLDER --exec run-plugin.sh"