planet-wars/frontend/www/webpack.config.js
2019-09-22 11:58:47 +02:00

27 lines
531 B
JavaScript

const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require('path');
module.exports = {
mode: 'development',
entry: './bootstrap.js',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: [ '.tsx', '.ts', '.js', '.wasm' ]
},
output: {
path: path.join(__dirname, 'dist'),
publicPath: '/',
filename: 'bootstrap.js'
},
plugins: [
new CopyWebpackPlugin(['index.html'])
],
};