speed debugging a bit
This commit is contained in:
parent
01b3291808
commit
454c7892f5
2 changed files with 31 additions and 3 deletions
28
.vscode/launch.json
vendored
28
.vscode/launch.json
vendored
|
|
@ -1,17 +1,39 @@
|
|||
{
|
||||
"configurations": [
|
||||
// recommended as much faster
|
||||
{
|
||||
// to launch "C:\Program Files\Google\Chrome Beta\Application\chrome.exe" --remote-debugging-port=9222
|
||||
"type": "chrome",
|
||||
"address": "localhost",
|
||||
"name": "Attach Chrome",
|
||||
"request": "attach",
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/public/**/*.js",
|
||||
// "!${workspaceFolder}/public/**/*vendors*",
|
||||
"!${workspaceFolder}/public/**/*minecraftData*",
|
||||
"!**/node_modules/**"
|
||||
],
|
||||
"skipFiles": [
|
||||
// "<node_internals>/**/*vendors*"
|
||||
"<node_internals>/**/*minecraftData*"
|
||||
],
|
||||
"port": 9222,
|
||||
},
|
||||
{
|
||||
// not recommended as in most cases it will slower as it launches from extension host so it slows down extension host, not sure why
|
||||
"type": "msedge",
|
||||
"name": "http://localhost:8080/",
|
||||
"name": "Launch Edge",
|
||||
"request": "launch",
|
||||
"url": "http://localhost:8080/",
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/public/**/*.js",
|
||||
"!${workspaceFolder}/public/**/*vendors*",
|
||||
// "!${workspaceFolder}/public/**/*vendors*",
|
||||
"!${workspaceFolder}/public/**/*minecraftData*",
|
||||
"!**/node_modules/**"
|
||||
],
|
||||
"skipFiles": [
|
||||
"<node_internals>/**/*vendors-*"
|
||||
// "<node_internals>/**/*vendors*"
|
||||
"<node_internals>/**/*minecraftData*"
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -26,6 +26,12 @@ module.exports = merge(common,
|
|||
maxAsyncRequests: 10,
|
||||
maxInitialRequests: 10,
|
||||
cacheGroups: {
|
||||
minecraftData: {
|
||||
test: /[\\/]node_modules[\\/]minecraft-data[\\/]/,
|
||||
name: "minecraftData",
|
||||
priority: 15,
|
||||
chunks: 'all'
|
||||
},
|
||||
vendors: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
name: "vendors",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue