vite-plugin-dns-prefetch
v1.1.4
Published
a plugin of dns-prefetch
Maintainers
Readme
vite-plugin-dns-prefetch
install
npm install vite-plugin-dns-prefetch -DUsage
limitDefines the upper limit for dns preresolutionparseFile:Define which files to be parsed,vue and reac will be build a js or ts file.Default we will find .tsaddDnsUrl: Define some dns-url to be added dns-prefetchexcludeDnsPrefetchUrl: 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:[]
})]