Vite plugin (v1.0.0) that generates the Chrome DevTools project settings file (com.chrome.devtools.json) on-the-fly in the dev server. It enables seamless integration with DevTools features like project settings and automatic workspace folders. The plugin serves a JSON endpoint at /.well-known/appspecific/com.chrome.devtools.json providing workspace root and UUID. Supports Vite 5, 6, and 7. Key differentiators: on-demand generation without build step, built-in UUID management, and Windows container path normalization for WSL/Docker Desktop. Written in TypeScript with type declarations.
npm install vite-plugin-devtools-jsonVerified import paths — ran on the pinned version, not inferred.
Basic Vite config with all plugin options enabled and a fixed UUID.
Replace 'normalizeForChrome' with 'normalizeForWindowsContainer'.
To persist UUID, pass a fixed uuid in options.
Ensure Vite version is ^5.0.0 || ^6.0.0 || ^7.0.0.
Use path.resolve(__dirname, '..') or an absolute path string.
Run 'npm install -D vite-plugin-devtools-json'
Use 'import devtoolsJson from 'vite-plugin-devtools-json''
Update Vite to ^5.0.0, ^6.0.0, or ^7.0.0