Skip to content

Instantly share code, notes, and snippets.

@samuelayo
Created November 30, 2017 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelayo/a62fa4ea7ca3248a4b62d5916862eb07 to your computer and use it in GitHub Desktop.
Save samuelayo/a62fa4ea7ca3248a4b62d5916862eb07 to your computer and use it in GitHub Desktop.
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