Skip to content

Instantly share code, notes, and snippets.

@selimtan
Created October 10, 2017 11:51
Show Gist options
  • Save selimtan/1916c6af71b6c97910e9e41424f0249f to your computer and use it in GitHub Desktop.
Save selimtan/1916c6af71b6c97910e9e41424f0249f to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: './src/index.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: [ ".tsx", ".ts", ".js" ]
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment