Created
February 25, 2018 15:06
-
-
Save binaryta/276053a365570e380736f2a6f6033a49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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