Fixed debug launch configurations

This commit is contained in:
squidfunk 2023-10-05 15:44:24 +02:00
parent dcf5a80ef7
commit 34aad07382
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
3 changed files with 24 additions and 2 deletions

15
.vscode/launch.json vendored
View File

@ -9,8 +9,13 @@
"--disable-features=Translate", "--disable-features=Translate",
"--incognito" "--incognito"
], ],
"preLaunchTask": "Start and watch for changes",
"url": "http://localhost:8000/mkdocs-material/", "url": "http://localhost:8000/mkdocs-material/",
"webRoot": "${workspaceFolder}", "webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"*": "${workspaceFolder}/*"
},
"smartStep": true "smartStep": true
}, },
{ {
@ -46,5 +51,15 @@
"PYTHONPATH": "." "PYTHONPATH": "."
} }
} }
],
"compounds": [
{
"name": "Application + MkDocs server",
"configurations": ["Application", "MkDocs server"]
},
{
"name": "Application + MkDocs server (dirty)",
"configurations": ["Application", "MkDocs server (dirty)"]
}
] ]
} }

10
.vscode/tasks.json vendored
View File

@ -23,8 +23,16 @@
"reveal": "silent" "reveal": "silent"
}, },
"problemMatcher": { "problemMatcher": {
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": { "background": {
"beginsPattern": "material\/templates\/redirect", "beginsPattern": "material\/templates",
"endsPattern": "." "endsPattern": "."
} }
} }

View File

@ -171,7 +171,6 @@ export function transformScript(
write: false, write: false,
bundle: true, bundle: true,
sourcemap: true, sourcemap: true,
sourceRoot: path.relative(path.dirname(options.from), "."),
legalComments: "inline", legalComments: "inline",
minify: process.argv.includes("--optimize"), minify: process.argv.includes("--optimize"),
plugins: [ plugins: [