Automatically refreshes your DocPad built website whenever a regeneration is performed
- Install the Plugin
npm install --save --force docpad-plugin-livereload
- Ensure your layout outputs the scripts block, using eco it will look something like this:
<%- @getBlock('scripts').toHTML() %>
By default this plugin is disabled for all environments except the development environment. To enable on more environments set the enabled
option to true
inside your environments configuration.
By default we will inject the socket.io dependency if we don't automatically detect it's presence. However, sometimes this auto detection doesn't always work. If this is the case, you can disable the injection and just do the listening by setting the inject
option to false
.
You can discover the history inside the History.md
file
Licensed under the incredibly permissive MIT License
Copyright © 2012 Bevry Pty Ltd