Skip to content

Instantly share code, notes, and snippets.

@haldarmahesh
Created January 13, 2019 15:18
Show Gist options
  • Select an option

  • Save haldarmahesh/be2428a0c6aeebc7074c34c023eca4ad to your computer and use it in GitHub Desktop.

Select an option

Save haldarmahesh/be2428a0c6aeebc7074c34c023eca4ad to your computer and use it in GitHub Desktop.
module.exports = {
entry: [
path.join(process.cwd(), 'app/app.tsx'), // or whatever the path of your root file is
]
module: {
rules:[{ test: /\.tsx?$/, loader: 'awesome-typescript-loader' }], // other loader configuration goes in the array
resolve: {extensions: ['.js', '.jsx', '.react.js', '.ts', '.tsx']}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment