2019-09-13 22:54:21 +02:00
|
|
|
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2019-09-16 21:18:01 +02:00
|
|
|
mode: 'development',
|
|
|
|
entry: './bootstrap.js',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: [ '.tsx', '.ts', '.js', '.wasm' ]
|
|
|
|
},
|
2019-09-13 22:54:21 +02:00
|
|
|
output: {
|
2019-09-16 21:18:01 +02:00
|
|
|
filename: 'bootstrap.js',
|
|
|
|
path: path.resolve(__dirname, 'dist')
|
2019-09-13 22:54:21 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new CopyWebpackPlugin(['index.html'])
|
|
|
|
],
|
|
|
|
};
|