Created
May 14, 2018 09:12
-
-
Save HansS/377c4a446c24389042855648f1d2a7b7 to your computer and use it in GitHub Desktop.
Webpack Config Template for Typescript
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
module.exports = { | |
mode: "development", | |
devtool: "inline-source-map", | |
entry: "./app.ts", | |
output: { | |
filename: "bundle.js" | |
}, | |
resolve: { | |
// Add `.ts` and `.tsx` as a resolvable extension. | |
extensions: [".ts", ".tsx", ".js"] | |
}, | |
module: { | |
rules: [ | |
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader` | |
{ test: /\.tsx?$/, loader: "ts-loader" } | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment