Skip to content

Commit 1a05f96

Browse files
committed
favicon
1 parent c50fcac commit 1a05f96

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ app.set('views', path.join(__dirname, 'views'))
1414
app.set('view engine', 'pug')
1515
app.set('env', process.env.NODE_ENV || 'production')
1616

17+
router.get('/favicon.ico', (req, res, next) => {
18+
res.redirect('/icon.svg')
19+
})
20+
1721
app.use(logger('dev'))
1822
app.use(express.raw())
1923
app.use(express.json())

client/css/main.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ a.logo {
5555
border-radius: 4px;
5656
}
5757

58-
.controls button.compare {}
59-
60-
.controls button.edit {}
61-
62-
.controls button.save {}
63-
6458
.delim {
6559
min-width: 4px;
6660
}
@@ -82,7 +76,6 @@ form .files textarea {
8276
}
8377

8478
.d2h-file-header {
85-
z-index: inherit;
8679
display: block;
8780
height: auto;
8881
}

client/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

gulpfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { src, dest, parallel, series, watch, task } = require('gulp')
1+
const { src, dest, parallel, series, watch } = require('gulp')
22
const clean = require('gulp-clean')
33
const uglifyCSS = require('gulp-clean-css')
44
const concat = require('gulp-concat')
@@ -19,18 +19,19 @@ const build = (type, compile) =>
1919
])
2020
.pipe(concat(`bundle.${type}`))
2121
.pipe(hash({ format: HASH_FORMAT }))
22-
.pipe(dest(`./public/${type}`))
22+
.pipe(dest(`public/${type}`))
2323

2424
const buildCSS = () => build('css', uglifyCSS)
2525
const buildJS = () => build('js', uglifyJS)
2626

2727
const css = series(cleanCSS, buildCSS)
2828
const js = series(cleanJS, buildJS)
29+
const favicon = () => src('client/icon.svg').pipe(dest('public'))
2930

3031
const watchCSS = () => watch('client/css/**', { ignoreInitial: false }, css)
3132
const watchJS = () => watch('client/js/**', { ignoreInitial: false }, js)
3233

3334
module.exports = {
34-
default: parallel(css, js),
35+
default: parallel(css, js, favicon),
3536
watch: parallel(watchCSS, watchJS)
3637
}

views/layout.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ html
33
head
44
block head
55
title DIƒƒER
6+
link(rel='icon' href='icon.svg' sizes='any' type='images/svg+xml')
67
- if (typeof bundles === 'object') {
78
link(rel='stylesheet' href=`/css/${bundles.css}`)
89
- }

0 commit comments

Comments
 (0)