0.1.1 • Published 23 days ago

vite-plugin-auto-preload v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
23 days ago

vite-plugin-auto-preload

npm

Vite plugin for adding preload resource hints in HTML.

Preload or module preload links are always generated at the end of head. You can refer to vite-plugin-html-sort-tags if you want to optimize the sorting.

Also see vite-plugin-prefetch-chunk if you want to generate prefetch links.

Installation

npm install --save-dev vite-plugin-auto-preload

Usage

// vite.config.js
import autoPreload from 'vite-plugin-auto-preload'

export default {
  plugins: [
    autoPreload(),
  ],
}
0.1.1

23 days ago

0.1.0

7 months ago