24 lines
414 B
JavaScript
24 lines
414 B
JavaScript
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
|
|
module.exports = {
|
|
entry: './src/index.ts',
|
|
resolve: {
|
|
extensions: ['.webpack.js', '.web.js', '.ts', '.js']
|
|
},
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
inject: true,
|
|
template: './static/index.html'
|
|
})
|
|
]
|
|
}
|