Created
May 14, 2018 09:12
-
-
Save HansS/e33db31d7db21faefdbbe7a832d8e8c1 to your computer and use it in GitHub Desktop.
Webpack Config Template for Typescript
This file contains hidden or 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" } | |
| ] | |
| } | |
| }; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
webpack config for typescript