From 63e5f5f0ba3c399fade5b1427772d4a77b3b92b8 Mon Sep 17 00:00:00 2001 From: Chris Laplante Date: Fri, 24 May 2024 11:08:53 -0400 Subject: [PATCH] add index.html redirect code for 404 handling; fix copying 404.html? --- src/main/index.html.ejs | 24 ++++++++++++++++++++++++ webpack.config.ts | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/main/index.html.ejs b/src/main/index.html.ejs index 0153a0c..7c6a194 100644 --- a/src/main/index.html.ejs +++ b/src/main/index.html.ejs @@ -4,6 +4,30 @@ BB Datastore Playground + + +
diff --git a/webpack.config.ts b/webpack.config.ts index 3bf3cb5..c2f2f90 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -60,7 +60,8 @@ module.exports = (env: any, argv: any) => { }), new CopyWebpackPlugin({ patterns: [ - {from: path.resolve(__dirname, 'assets/'), to: 'assets'} + {from: path.resolve(__dirname, 'assets/'), to: 'assets'}, + {from: path.resolve(__dirname, "404.html"), to: ""}, ] }), ],