vite-plugin-dns-prefetch
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

vite-plugin-dns-prefetch

install

npm install vite-plugin-dns-prefetch -D

Usage

  • limit Defines the upper limit for dns preresolution
  • parseFile:Define which files to be parsed,vue and reac will be build a js or ts file.Default we will find .ts
  • addDnsUrl: Define some dns-url to be added dns-prefetch
  • excludeDnsPrefetchUrl: exclude some url
plugins: [VitePluginDnsPrefetch({
  limit: 10,default:10
  parseFile: '.ts' | '.js', default:.ts
  addDnsUrl: ['https://www.nodeapp.cn/'],default:[]
  excludeDnsPrefetchUrl: ['https://vuejs.org'],default:[]
})]

/vite-plugin-dns-prefetch/

    Package Sidebar

    Install

    npm i vite-plugin-dns-prefetch

    Weekly Downloads

    1

    Version

    1.1.4

    License

    ISC

    Unpacked Size

    856 kB

    Total Files

    5

    Last publish

    Collaborators

    • fancy_fish