{"repo":"ChromeDevTools/vite-plugin-devtools-json","free":true,"listed":false,"github":"https://github.com/ChromeDevTools/vite-plugin-devtools-json","clone":"git clone https://github.com/ChromeDevTools/vite-plugin-devtools-json.git","description":"Vite plugin for generating `com.chrome.devtools.json` on the fly in the devserver.","language":"TypeScript","stars":403,"topics":["chrome","devtools","vite"],"license":"MIT","category":"dev-tools","readme_excerpt":"Vite Plugin for DevTools Project Settings (devtools.json) Vite plugin for generating the Chrome DevTools project settings file on-the-fly in the devserver. This enables seamless integration with the new Chrome DevTools features 1. DevTools Project Settings (devtools.json), and 1. Automatic Workspace folders. Installation Usage Add it to your Vite config While the plugin can generate a UUID and save it in vite cache, you can also specify it in the options like in the following: Options Name Type Default Description ------ ------ --------- ------------- projectRoot string config.root Absolute path that will be reported to DevTools. Useful for monorepos or when the Vite root is not the desired folder. normalizeForWindowsContainer boolean true Convert Linux paths to UNC form so Chrome on Windows (WSL / Docker Desktop) can mount them (e.g. via WSL or Docker Desktop). Pass false to disable. Alias: normalizeForChrome (deprecated) uuid string auto-generated Fixed UUID if you prefer to control it yourself. Example with all options: The /.well-known/appspecific/com.chrome.devtools.json endpoint will serve the project settings as JSON with the following structure where root is the absolute path to your {projectRoot} folder, and uuid is a random v4 UUID, generated the first time that you start the Vite devserver with the plugin installed (it is henceforth cached in the Vite cache folder). Checkout [bmeurer/automatic-workspace-folders-vanilla] for a trivial example project illustrating ho","default_branch":null,"files":null,"tree":[],"storefront":"/r/ChromeDevTools","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ChromeDevTools/vite-plugin-devtools-json/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}