From 5821949e3344229859797f90f56d6c5797c6a101 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Mon, 9 Jan 2023 14:22:08 -0800 Subject: [PATCH] add config file, bundle.js instead of main.js --- static/index.html | 2 +- webpack.config.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 webpack.config.js diff --git a/static/index.html b/static/index.html index fa44c3e..16a9a61 100644 --- a/static/index.html +++ b/static/index.html @@ -11,6 +11,6 @@ - + diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..67e7b8c --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,9 @@ +const path = require('path'); + +module.exports = { + entry: path.resolve(__dirname, 'src', 'index.js'), + output: { + filename: 'bundle.js', + path: path.resolve(__dirname, 'dist'), + }, +};