1.1.4 • Published 2 years ago
vite-plugin-dns-prefetch v1.1.4
vite-plugin-dns-prefetch
install
npm install vite-plugin-dns-prefetch -D
Usage
limit
Defines 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:[]
})]