Skip to content

Instantly share code, notes, and snippets.

@TheRealFlyingCoder
Last active November 10, 2021 04:07
Show Gist options
  • Save TheRealFlyingCoder/8d07af63799f0994aee1a7cb08e27a11 to your computer and use it in GitHub Desktop.
Save TheRealFlyingCoder/8d07af63799f0994aee1a7cb08e27a11 to your computer and use it in GitHub Desktop.
VSCode - Remix dev and Tailwind in split terminal on project startup
{
"version": "2.0.0",
"tasks": [
{
"label": "Run remix dev",
"type": "shell",
"command": "yarn dev",
"presentation": {
"reveal": "always",
"panel": "new",
"group": "develop",
},
"runOptions": { "runOn": "folderOpen" }
},
{
"label": "Run tailwind css watch",
"type": "shell",
"command": "yarn watch:css",
"presentation": {
"reveal": "always",
"panel": "new",
"group": "develop",
},
"runOptions": { "runOn": "folderOpen" }
},
{
"label": "Start Dev",
"dependsOn": [
"Run remix dev",
"Run tailwind css watch"
],
"problemMatcher": []
}
]
}
Create the tasks.json file in the .vscode folder, making sure you have the right commands
Allow VSCode to run tasks automatically:
CTRL+P / CTRL+SHIFT+P (windows)
>Tasks: Manage Automatic Tasks in Folder
> > Allow Automatic Tasks In Folder
Restart VS Code and VIOLA!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment