planet-wars/frontend/www/webpack.config.js

27 lines
510 B
JavaScript
Raw Normal View History

2019-09-13 20:54:21 +00:00
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require('path');
module.exports = {
2019-09-16 19:18:01 +00: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 20:54:21 +00:00
output: {
2019-09-22 09:58:47 +00:00
path: path.join(__dirname, 'dist'),
filename: 'bootstrap.js'
2019-09-13 20:54:21 +00:00
},
plugins: [
new CopyWebpackPlugin(['index.html'])
],
};