Created
June 27, 2016 20:34
-
-
Save ulitiy/f469b392cd2d803de93cdf7121886cf3 to your computer and use it in GitHub Desktop.
VS Code debugger, breakpoints doesn't work
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 with sourcemaps", | |
"type": "chrome", | |
"request": "attach", | |
"port": 9222, | |
"sourceMaps": true, | |
"webRoot": "${workspaceRoot}" | |
} | |
] | |
} |
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": { | |
"outDir": "./dist/", | |
"sourceMap": true, | |
"noImplicitAny": true, | |
"module": "commonjs", | |
"target": "es5" | |
}, | |
"files": [ | |
"./typings/index.d.ts", | |
"./src/index.ts" | |
] | |
} |
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
var webpack = require('webpack'); | |
var PROD = (process.env.NODE_ENV === 'production') | |
module.exports = { | |
entry: "./src/index.ts", | |
output: { | |
path: "./dist", | |
publicPath: "/dist/", | |
filename: PROD ? "bundle.min.js" : "bundle.js", | |
}, | |
devtool: "source-map", | |
resolve: { | |
extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"] | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.css$/, loader: "style!css" }, | |
{ test: /\.tsx?$/, loader: "ts-loader" } | |
], | |
preLoaders: [ | |
{ test: /\.js$/, loader: "source-map-loader" } | |
] | |
}, | |
externals: {} //unify import | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment