Skip to content

v1.1.0

Latest

Choose a tag to compare

@hmsk hmsk released this 15 Feb 08:46
· 6 commits to main since this release
7488c24

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

v1.0.0...v1.1.0