Skip to content

Commit

Permalink
add vscode launch configuration and configure source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jabberwoc committed Apr 8, 2024
1 parent 7b4d1e7 commit f2f1cc8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
54 changes: 28 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings":
{
"/var/www/html/apps-extra/templateapp": "${workspaceFolder}",
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9003
}
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html/apps-extra/templateapp": "${workspaceFolder}"
}
},
{
"type": "chrome",
"request": "launch",
"name": "Vuejs: Chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///templateapp/src/*": "${webRoot}/src/*",
"webpack:///templateapp/node_modules/*": "${workspaceFolder}/node_modules/*"
}
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": "webpack --node-env production --progress",
"dev": "webpack --node-env development --progress",
"watch": "webpack --node-env development --progress --watch",
"serve": "webpack serve --node-env development --allowed-hosts all",
"serve": "webpack serve --node-env development --progress --allowed-hosts all",
"lint": "eslint --ext .js,.vue src",
"lint:fix": "eslint --ext .js,.vue src --fix",
"stylelint": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue",
Expand Down Expand Up @@ -43,4 +43,4 @@
"webpack": "^5.65.0",
"webpack-cli": "^5.0.1"
}
}
}
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
const webpackConfig = require('@nextcloud/webpack-vue-config')

webpackConfig.devtool = 'source-map'

module.exports = webpackConfig

0 comments on commit f2f1cc8

Please sign in to comment.