Skip to content

Instantly share code, notes, and snippets.

@binaryta
Created February 25, 2018 15:06
Show Gist options
  • Save binaryta/276053a365570e380736f2a6f6033a49 to your computer and use it in GitHub Desktop.
Save binaryta/276053a365570e380736f2a6f6033a49 to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: [path.resolve(__dirname, './src/app.ts')],
output: {
filename: 'bundle.js',
path: path.join(__dirname, 'public/')
},
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
enforce: 'pre',
loader: 'tslint-loader',
options: {
failOnHint: true
}
},
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: 'ts-loader'
}
]
},
resolve: {
extensions: ['.ts', '.tsx']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment