vite-plugin-preload-chunks
v1.0.9
Published
Vite plugin for generating key chunks map for preloading by external projects
Downloads
51
Readme
Preload chunks plugin for Vite
Vite Plugin generating key chunks map for preloading by external projects
Installation
npm i vite-plugin-preload-chunks --save-dev
Usage
In your Vite configuration, import the plugin:
import preloadChunks from 'vite-plugin-preload-chunks';
Then invoke the plugin:
plugins: [
preloadChunks(),
]
You can specify which chunks should be preloaded:
const config = {
matchers: ['vue', 'datepicker']
}
plugins: [
preloadChunks(config),
]