planet-wars/frontend/www/webpack.config.js
ajuvercr c846042597 wtf
2019-09-16 21:18:01 +02:00

27 lines
513 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: {
filename: 'bootstrap.js',
path: path.resolve(__dirname, 'dist')
},
plugins: [
new CopyWebpackPlugin(['index.html'])
],
};