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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners