Skip to content

Commit ca80b3a

Browse files
committed
Add favicon
1 parent 559db43 commit ca80b3a

10 files changed

+1322
-6
lines changed

src/examples/basicExample/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import React, { Component } from 'react';
22
import ReactDOM from 'react-dom';
33
import SortableTree, { toggleExpandedForAll } from '../../index';
44
import styles from './stylesheets/app.scss';
5+
import '../shared/favicon/apple-touch-icon.png';
6+
import '../shared/favicon/favicon-16x16.png';
7+
import '../shared/favicon/favicon-32x32.png';
8+
import '../shared/favicon/favicon.ico';
9+
import '../shared/favicon/safari-pinned-tab.svg';
510

611
class App extends Component {
712
constructor(props) {

src/examples/basicExample/index.html

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<meta charset="UTF-8">
55
<title>React Sortable Tree</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="apple-touch-icon" sizes="180x180" href="static/apple-touch-icon.png">
8+
<link rel="icon" type="image/png" href="static/favicon-32x32.png" sizes="32x32">
9+
<link rel="icon" type="image/png" href="static/favicon-16x16.png" sizes="16x16">
10+
<link rel="mask-icon" href="static/safari-pinned-tab.svg" color="#de7a32">
11+
<link rel="shortcut icon" href="static/favicon.ico">
12+
<meta name="theme-color" content="#ffffff">
713
</head>
814
<body>
915
<div id="app"></div>
5.88 KB
Loading
734 Bytes
Loading
1.43 KB
Loading
14.7 KB
Binary file not shown.

src/examples/shared/favicon/safari-pinned-tab.svg

+1,305
Loading

webpack.config.demo.babel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ module.exports = {
5656
],
5757
},
5858
{
59-
test: /\.(jpe?g|png|gif)$/,
59+
test: /\.(jpe?g|png|gif|ico|svg)$/,
6060
loaders: [
61-
'file-loader?name=static/[name]-[hash:6].[ext]',
61+
'file-loader?name=static/[name].[ext]',
6262
],
6363
include: path.join(__dirname, 'src')
6464
},

webpack.config.dev.babel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ module.exports = {
5252
],
5353
},
5454
{
55-
test: /\.(jpe?g|png|gif)$/,
55+
test: /\.(jpe?g|png|gif|ico|svg)$/,
5656
loaders: [
57-
'file-loader?name=static/[name]-[hash:6].[ext]',
57+
'file-loader?name=static/[name].[ext]',
5858
],
5959
include: path.join(__dirname, 'src')
6060
},

webpack.config.test.babel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ module.exports = {
5858
],
5959
},
6060
{
61-
test: /\.(jpe?g|png|gif)$/,
61+
test: /\.(jpe?g|png|gif|ico|svg)$/,
6262
loaders: [
63-
'file-loader?name=static/[name]-[hash:6].[ext]',
63+
'file-loader?name=static/[name].[ext]',
6464
],
6565
include: path.join(__dirname, 'src')
6666
},

0 commit comments

Comments
 (0)