2023-08-14 04:13:18 +00:00
|
|
|
const path = require('path');
|
|
|
|
const HtmlWebPackPlugin = require( 'html-webpack-plugin' );
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/index.js',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.(js|jsx)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: ['babel-loader'],
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// test: /\.(png|j?g|svg|gif|mp3)?$/,
|
|
|
|
// use: [require.resolve('file-loader')]
|
|
|
|
// }
|
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.js', '.jsx', '*'],
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new HtmlWebPackPlugin({
|
|
|
|
template: path.resolve( __dirname, '../public/index.html' ),
|
2023-08-14 06:57:52 +00:00
|
|
|
title: "Monsterdon Bingo",
|
|
|
|
inject: true
|
2023-08-14 04:13:18 +00:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
output: {
|
|
|
|
filename: 'bundle.js',
|
|
|
|
path: path.resolve(__dirname, '../dist'),
|
|
|
|
},
|
|
|
|
};
|