diff --git a/.vscode/launch.json b/.vscode/launch.json index 9edc3fe46..639e38390 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,8 +9,13 @@ "--disable-features=Translate", "--incognito" ], + "preLaunchTask": "Start and watch for changes", "url": "http://localhost:8000/mkdocs-material/", "webRoot": "${workspaceFolder}", + "sourceMaps": true, + "sourceMapPathOverrides": { + "*": "${workspaceFolder}/*" + }, "smartStep": true }, { @@ -46,5 +51,15 @@ "PYTHONPATH": "." } } + ], + "compounds": [ + { + "name": "Application + MkDocs server", + "configurations": ["Application", "MkDocs server"] + }, + { + "name": "Application + MkDocs server (dirty)", + "configurations": ["Application", "MkDocs server (dirty)"] + } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 82c7cdddd..6697f27b0 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -23,8 +23,16 @@ "reveal": "silent" }, "problemMatcher": { + "pattern": [ + { + "regexp": ".", + "file": 1, + "location": 2, + "message": 3 + } + ], "background": { - "beginsPattern": "material\/templates\/redirect", + "beginsPattern": "material\/templates", "endsPattern": "." } } diff --git a/tools/build/transform/index.ts b/tools/build/transform/index.ts index b7f2807bc..f7f0ced7f 100644 --- a/tools/build/transform/index.ts +++ b/tools/build/transform/index.ts @@ -171,7 +171,6 @@ export function transformScript( write: false, bundle: true, sourcemap: true, - sourceRoot: path.relative(path.dirname(options.from), "."), legalComments: "inline", minify: process.argv.includes("--optimize"), plugins: [