Last active
October 16, 2020 15:00
-
-
Save boydaihungst/0289784028ab0c36e411ce044fd9a93f to your computer and use it in GitHub Desktop.
Debug nuxtjs (Typescript) using VScode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// launch.json | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "client: chrome", | |
"url": "http://localhost:3000", | |
"webRoot": "${workspaceFolder}" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "server: nuxt", | |
"args": ["dev"], | |
"console": "integratedTerminal", | |
"osx": { | |
"program": "${workspaceFolder}/node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js" | |
}, | |
"linux": { | |
"program": "${workspaceFolder}/node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js" | |
}, | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js" | |
} | |
} | |
], | |
"compounds": [ | |
{ | |
"name": "fullstack: nuxt", | |
"configurations": ["server: nuxt", "client: chrome"] | |
} | |
] | |
} | |
// package.json | |
"scripts": { | |
"dev": "nuxt-ts" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment