26 lines
503 B
JavaScript
26 lines
503 B
JavaScript
|
|
const path = require('path');
|
||
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
context: __dirname,
|
||
|
|
entry: './src/index.ts',
|
||
|
|
mode: 'development',
|
||
|
|
module: {
|
||
|
|
rules: [
|
||
|
|
{
|
||
|
|
test: /\.ts?$/,
|
||
|
|
exclude: /node_modules/,
|
||
|
|
use: 'ts-loader',
|
||
|
|
},
|
||
|
|
]
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
extensions: ['.ts', '.js']
|
||
|
|
},
|
||
|
|
plugins: [
|
||
|
|
new HtmlWebpackPlugin({
|
||
|
|
template: "index.html",
|
||
|
|
title: "Cabin Game",
|
||
|
|
}),
|
||
|
|
],
|
||
|
|
}
|