Skip to content

Instantly share code, notes, and snippets.

@mateuszsokola
Created October 11, 2017 19:36
Show Gist options
  • Save mateuszsokola/cd1a01d5f46d335b79c2f9fec20f276d to your computer and use it in GitHub Desktop.
Save mateuszsokola/cd1a01d5f46d335b79c2f9fec20f276d to your computer and use it in GitHub Desktop.
const webpack = {
entry: './src/client/index.tsx',
output: {
filename: 'target/bundle.js',
},
devtool: 'source-map',
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
},
module: {
loaders: [
{
test: /.tsx?$/,
loader: 'awesome-typescript-loader',
exclude: /node_modules/,
}, {
test: /.js$/,
loader: 'source-map-loader',
enforce: 'pre',
}
]
}
};
module.exports = webpack;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment