updating plugin to remove use of staticDir in favour of staticDirs

## Please publish to npm when merged, thanks.