Modern web development generally involves running various scripts in your terminal to build assets, analyse your code and more. Thankfully it's possible to automate that process in Visual Studio Code using tasks.json file.

{"version": "2.0.0", "tasks": [{ "label": "Run Vite", "type": "shell", "command": "npm run dev", "presentation": {"reveal": "always", "panel": "new"}, "runOptions": {"runOn": "folderOpen"} }] } This task will automatically run the npm run dev command when the project folder is opened. The next time it's opened, the task panel will show up alongside your regular terminal and that process will start automatically.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners