Skip to content

Instantly share code, notes, and snippets.

@alemohamad
Created May 16, 2019 16:41
Show Gist options
  • Save alemohamad/881d3473abf1c6da2ccf4be81f97eeee to your computer and use it in GitHub Desktop.
Save alemohamad/881d3473abf1c6da2ccf4be81f97eeee to your computer and use it in GitHub Desktop.
webpack example file
module.exports = {
entry: './src/index',
output: {
path: __dirname + '/build',
filename: 'bundle.js'
},
module: {
rules: [{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: /node_modules/
}]
},
resolve: {
extensions: ['.ts', '.tsx']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment