feat: module added

This commit is contained in:
Smigz 2023-12-18 17:54:59 -05:00
parent 8d2c9f4bed
commit 051c7e2ad5
5 changed files with 2277 additions and 3 deletions

View file

@ -1,2 +1,24 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: 'development',
entry: {
index: './src/index.js',
},
plugins: [
new HtmlWebpackPlugin({
title: 'Restaurant - Dev',
}),
],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
clean: true,
},
devtool: 'inline-source-map',
devServer: {
static: './dist',
},
};