瀏覽代碼

Adds better sourcemap support

main
Eric Amodio 5 年之前
父節點
當前提交
39f6830680
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. +4
    -2
      .vscode/launch.json
  2. +1
    -2
      webpack.config.js

+ 4
- 2
.vscode/launch.json 查看文件

@ -11,8 +11,9 @@
"env": {
"VSCODE_DEBUGGING_EXTENSION": "gitlens"
},
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/app/out/vs/**", "**/extensions/**"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
"smartStep": true,
"sourceMaps": true
},
@ -25,8 +26,9 @@
"VSCODE_DEBUGGING_EXTENSION": "gitlens"
},
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/app/out/vs/**", "**/extensions/**"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
"smartStep": true,
"sourceMaps": true,
"preLaunchTask": "npm: watch"

+ 1
- 2
webpack.config.js 查看文件

@ -68,8 +68,7 @@ function getExtensionConfig(env) {
devtool: 'source-map',
output: {
libraryTarget: 'commonjs2',
filename: 'extension.js',
devtoolModuleFilenameTemplate: 'file:///[absolute-resource-path]'
filename: 'extension.js'
},
optimization: {
minimizer: [

Loading…
取消
儲存