copying 404 to dist

This commit is contained in:
antelle 2020-04-09 18:36:56 +02:00
parent 6c80d50290
commit d15366ee24
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
3 changed files with 33 additions and 0 deletions

View File

@ -66,6 +66,11 @@ module.exports = function(grunt) {
dest: 'dist/index.html',
nonull: true
},
'404-dist': {
src: 'app/404.html',
dest: 'dist/404.html',
nonull: true
},
favicon: {
src: 'app/favicon.png',
dest: 'tmp/favicon.png',

27
app/404.html Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Not Found</title>
<style>
body {
font-family: -apple-system, "BlinkMacSystemFont", "Raleway", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-feature-settings: "liga" 0;
text-align: center;
background: #F5F5F5;
font-weight: 300;
}
h1 {
font-size: 3em;
margin-top: 10vh;
}
p {
line-height: 1.5em;
}
</style>
</head>
<body>
<h1>404 Not Found</h1>
<p>Sorry, the page you're looking for was not found.</p>
</body>
</html>

View File

@ -13,6 +13,7 @@ module.exports = function(grunt) {
'htmlmin',
'csp-hashes',
'copy:html-dist',
'copy:404-dist',
'string-replace:service-worker',
'string-replace:manifest',
'copy:dist-icons',