Skip to content

Instantly share code, notes, and snippets.

@carlosmarte
Last active May 29, 2018 12:37
Show Gist options
  • Save carlosmarte/d126356a17bd9131eaf7fc06d3d623be to your computer and use it in GitHub Desktop.
Save carlosmarte/d126356a17bd9131eaf7fc06d3d623be to your computer and use it in GitHub Desktop.
post-webpack-standard-ts-loader
var path = require('path');
module.exports = {
entry: './src/index',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'app.bundle.js'
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json']
},
module: {
rules: [
{
test: /\.(tsx?)|(js)$/,
exclude: /node_modules/,
loader: 'babel-loader',
}
],
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment