Skip to content

Instantly share code, notes, and snippets.

@npeters
Last active June 24, 2016 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npeters/9cc915dd7c7bf770915526a21fc22d5a to your computer and use it in GitHub Desktop.
Save npeters/9cc915dd7c7bf770915526a21fc22d5a to your computer and use it in GitHub Desktop.
TypeScript + Webpack + vscode + chrome-debug
{
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"noImplicitAny": false,
"sourceMap": true,
"outDir": "target",
"jsx": "react"
},
"exclude": [
"node_modules",
"target",
"typings",
"test"
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "${workspaceRoot}/target",
"url": "http://localhost:8080/",
"diagnosticLogging": true,
"verboseDiagnosticLogging": true,
"sourceMaps": true
}
]
}
entry: {
app: "./src/ts/app.tsx",
vendor: ["react", "react-dom"]
},
output: {
path: __dirname + "/target",
filename: "[name].bundle.js",
// ajoute des path en absolue dans les fichier de map pour vscode
devtoolModuleFilenameTemplate: "file://[absolute-resource-path]",
devtoolFallbackModuleFilenameTemplate: "file://[absolute-resource-path]?[hash]"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment