Skip to content

Commit 86994b6

Browse files
committed
Added 404 page
1 parent 37bd08f commit 86994b6

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.npmignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.cache
22
.github
3+
.vscode
34
coverage
4-
node_modules
55
dev
6+
node_modules
7+
package-lock.json
68
src
7-
test
8-
package-lock.json
9+
test

dev/404.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>404</title>
8+
</head>
9+
<body>
10+
<style>
11+
body {
12+
font-family: Arial, Helvetica, sans-serif;
13+
}
14+
h1 {
15+
font-weight: bold;
16+
text-align: center;
17+
margin-top: 48px;
18+
}
19+
</style>
20+
<h1>404 - Nothing Here</h1>
21+
</body>
22+
</html>

fiveserver.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports = {
22
port: 8085,
33
root: 'dev',
4+
file: '404.html',
5+
// host: '0.0.0.0',
46
// open: false,
57
// https: true,
68
// browser: ['edge', 'chrome', 'firefox']

0 commit comments

Comments
 (0)