Skip to content

Commit 56c98de

Browse files
author
vikasrohit
authored
Merge pull request #872 from appirio-tech/feature/favicon_fix
Github issue#9, Add favicon.ico
2 parents a28d10f + f89c2fb commit 56c98de

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

docs/dependency-notes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
This document outlines the dependency concerns faced during the development of the application.
3+
4+
1. We have overridden the version to 1.1.2 of to-ico library which is used indirectly by "favicon-webpack-plugin" which in turn is used for generating the favicons for different devices and browser combinations. This was required because with versions above 1.1.2 to-ico library is using some features from node v5.10+.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"deep-freeze-node": "^1.1.2",
1919
"eslint": "^2.2.0",
2020
"eslint-plugin-react": "^4.1.0",
21+
"favicons-webpack-plugin": "0.0.7",
22+
"to-ico":"1.1.2",
2123
"ignore-styles": "^1.2.0",
2224
"mocha": "^2.4.5",
2325
"mocha-jsdom": "^1.1.0",

src/favicon.png

15.4 KB
Loading

src/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<link ref="icon" href="/favicon/favicon.ico" />
54
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
65
<meta http-equiv="X-UA-Compatible" content="IE=edge">
76
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require('./node_modules/coffee-script/register')
2+
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
23

34
const branch = process.env.TRAVIS_BRANCH
45

@@ -43,4 +44,6 @@ config.module.loaders.forEach((loader, i, loaders) => {
4344
}
4445
})
4546

47+
config.plugins.push(new FaviconsWebpackPlugin('./src/favicon.png'))
48+
4649
module.exports = config

0 commit comments

Comments
 (0)