Last active
June 24, 2016 14:10
-
-
Save npeters/9cc915dd7c7bf770915526a21fc22d5a to your computer and use it in GitHub Desktop.
TypeScript + Webpack + vscode + chrome-debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es2015", | |
"noImplicitAny": false, | |
"sourceMap": true, | |
"outDir": "target", | |
"jsx": "react" | |
}, | |
"exclude": [ | |
"node_modules", | |
"target", | |
"typings", | |
"test" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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