Created
April 7, 2019 16:57
-
-
Save amazzalel-habib/d733c90ec4a28fca62e7bee0bb3c1e11 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'); | |
const htmlWebpackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
mode: 'development', | |
entry: { | |
app: './src/index.tsx' | |
}, | |
output: { | |
filename: 'bundle.[hash].js', | |
path: path.resolve(__dirname, 'dist') | |
}, | |
resolve: { | |
extensions: ['.ts', '.tsx', '.js', '.jsx'] | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /.tsx?/, | |
loader: 'ts-loader' | |
} | |
] | |
}, | |
plugins: [ | |
new htmlWebpackPlugin({ | |
template: './src/index.html' | |
}) | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment