Fixing up react-app build
- Added to the build step in the vscode-extension:build task - Added inline source maps so its easier to track down issues when using console.log / debugger in chrome dev tools within vscode
This commit is contained in:
parent
5295d1214b
commit
7c049df2e4
2 changed files with 18 additions and 2 deletions
16
.vscode/tasks.json
vendored
16
.vscode/tasks.json
vendored
|
|
@ -7,6 +7,8 @@
|
|||
"dependsOn": [
|
||||
// To detect compile errors
|
||||
"vscode-extension:tsc",
|
||||
// To build the react-app that is used in the extension
|
||||
"vscode-extension:continue-ui:build",
|
||||
// To bundle the code the same way we do for publishing
|
||||
"vscode-extension:esbuild"
|
||||
],
|
||||
|
|
@ -50,6 +52,20 @@
|
|||
"clear": true,
|
||||
},
|
||||
},
|
||||
// Build the react-app. It gets bundled into the extension as a file resource and has a seprate build step
|
||||
{
|
||||
"label": "vscode-extension:continue-ui:build",
|
||||
"type": "npm",
|
||||
"script": "build",
|
||||
"path": "extension/react-app",
|
||||
"problemMatcher": [
|
||||
"$tsc"
|
||||
],
|
||||
"presentation": {
|
||||
"revealProblems": "onProblem",
|
||||
"clear": true,
|
||||
},
|
||||
},
|
||||
//
|
||||
// Compile and bundle tests
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build --sourcemap",
|
||||
"build": "tsc && vite build --sourcemap 'inline'",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
@ -39,4 +39,4 @@
|
|||
"typescript": "^4.9.3",
|
||||
"vite": "^4.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue