Vite plugin that generates an asset manifest JSON file during build, similar to webpack-manifest-plugin. Version 0.0.1 is the initial and only release. It provides hooks to customize manifest generation and allows specifying publicPath and output fileName. Minimal alternative to other manifest plugins for Vite.
npm install vite-plugin-manifestVerified import paths — ran on the pinned version, not inferred.
Basic setup of vite-plugin-manifest in a Vite project with custom publicPath and fileName, including optional generate callback.
Set publicPath to your deployment subpath, e.g., '/my-app/'
Test thoroughly or consider more mature alternatives like vite-plugin-manifest-sri
Define interfaces for manifest, entries, and chunks manually or use inferred types
Use only as part of your build step; for dev manifest, consider a custom middleware
Use default import: import vitePluginManifest from 'vite-plugin-manifest'
Install with npm install vite-plugin-manifest and if using TypeScript, add a declare module 'vite-plugin-manifest' or use a .d.ts file.
Add publicPath to plugin options, e.g., publicPath: '/'
No dependency data recorded yet.