mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-27 00:07:50 +01:00
add not found script
This commit is contained in:
9
client/src/scripts/notFound.js
Normal file
9
client/src/scripts/notFound.js
Normal 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();
|
||||
}
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user