add not found script

This commit is contained in:
AlecM33
2021-12-28 18:04:23 -05:00
parent 60359f66e0
commit cb541c8bf0
3 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
import { injectNavbar } from "../modules/Navbar.js";
const notFound = () => { injectNavbar(); };
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = notFound;
} else {
notFound();
}

View File

@@ -4,7 +4,8 @@ module.exports = {
entry: {
game: './client/src/scripts/game.js',
home: './client/src/scripts/home.js',
create: './client/src/scripts/create.js'
create: './client/src/scripts/create.js',
notFound: './client/src/scripts/notFound.js'
},
output: {
path: path.resolve(__dirname, '../dist'),

View File

@@ -5,7 +5,8 @@ module.exports = {
entry: {
game: './client/src/scripts/game.js',
home: './client/src/scripts/home.js',
create: './client/src/scripts/create.js'
create: './client/src/scripts/create.js',
notFound: './client/src/scripts/notFound.js'
},
output: {
path: path.resolve(__dirname, '../dist'),