Applelo/vite-plugin-inject-preload

Switch to unplugin-inject-preload

Applelo opened this issue · 0 comments

Hello everyone, this repository will be archived and the npm package will be deprecated in one month. It will not receive anymore update. You can switch to unplugin-inject-preload and follow the migration guide.

Why

vite-plugin-inject-preload is born thanks to my previous project (in my previous job): html-webpack-inject-preload. This new plugin, unplugin-inject-preload, allows me to make one plugin for vite and webpack sharing a lot of codebase and doing the same thing: this is pretty cool.

New stuff

You will find a new option to match from the entry file instead of the output file, this can be helpful for some people :)
In future, I will add support for rspack and maybe additional options (like automatic modulepreload link).