This is a trivial Hello World demo for the new Automatic Workspace Folders feature in Chrome DevTools and later. Checkout the documentation on how to set up Google Chrome (Canary) to enable the feature. Follow the steps below to try it out.
Checkout and setup the demo via:
git clone http://github.com/bmeurer/automatic-workspace-folders-hello-world
cd automatic-workspace-folders-hello-world
npm install
Run
npm start
and open http://localhost:3000 in your Google Chrome (Canary),
open DevTools, and reveal the Workspace tab in the Sources panel. If you set up everything
correctly, you'll see a row automatic-workspace-folders-demo
with a Connect button next
to it in the list.
Once you've clicked Connect, Chrome will ask you to allow full access to the folder via a browser permission prompt. You need to click Allow here.
If everything went well, you'll now be able to use the project folder as part of your Workspace and edit files from your project directly within DevTools, and also persist changes that you made during debugging to your project source.