New features
Support voluntary compiler hook
Now we can give a hook option to make symlink by an intentional Webpack compiler hook:
{ origin: 'index.html', symlink: '200.html', hook: 'entryOption' }creates a symlink as 200.html in entryOption hook.
Check out all Webpack's compiler hooks: https://webpack.js.org/api/compiler-hooks/
The default hook is afterEmit as same as previous versions.
Digs directories by force option
force option lets this plugin creates directories when directories don't exist yet where a created symlink will be placed.
{ origin: 'index.html', symlink: 'not/exists/yet/200.html', force: true }, // => `not/exists/yet` dirs will be created if doesn't exist