0.1.5 • Published 1 year ago

unplugin-prefetch-dns v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

unplugin-dns-prefetch

Automatically collect the domain name in the code and insert it into the head of html

Usage

Vite

// vite.config.ts
import { defineConfig } from 'vite'
import dnsPrefetchPlugin from 'unplugin-prefetch-dns/vite'
import vue from '@vitejs/plugin-vue'
import type { PluginOption } from 'vite'
export default defineConfig({
  plugins: [
    vue(),
    dnsPrefetchPlugin(),
  ],
})

Webpack

// webpack.config.js
module.exports = {
  plugins: [
    require('unplugin-prefetch-dns/webpack').default,
  ],
}

Vue CLI

// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-prefetch-dns/webpack').default
    ],
  },
}
0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago