Created
November 30, 2017 02:35
-
-
Save samuelayo/a62fa4ea7ca3248a4b62d5916862eb07 to your computer and use it in GitHub Desktop.
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 path = require("path"); | |
var config = { | |
entry: ["./app.tsx"], | |
output: { | |
path: path.resolve(__dirname, "build"), | |
filename: "bundle.js" | |
}, | |
resolve: { | |
extensions: [".ts", ".tsx", ".js"] | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.tsx?$/, | |
loader: "ts-loader", | |
exclude: /node_modules/ | |
} | |
] | |
} | |
}; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment