fix: remove redundant icon assets and links (#35568)
This commit is contained in:
committed by
mrugesh mohapatra
parent
1d2baeabdc
commit
784de367a1
@ -1,55 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
|
|
||||||
const favicons = [
|
|
||||||
<link
|
|
||||||
href='/assets/apple-touch-icon.png'
|
|
||||||
key='/assets/apple-touch-icon.png'
|
|
||||||
rel='apple-touch-icon'
|
|
||||||
sizes='180x180'
|
|
||||||
/>,
|
|
||||||
<link
|
|
||||||
href='/assets/favicon-32x32.png'
|
|
||||||
key='/assets/favicon-32x32.png'
|
|
||||||
rel='icon'
|
|
||||||
sizes='32x32'
|
|
||||||
type='image/png'
|
|
||||||
/>,
|
|
||||||
<link
|
|
||||||
href='/assets/android-chrome-192x192.png'
|
|
||||||
key='/assets/android-chrome-192x192.png'
|
|
||||||
rel='icon'
|
|
||||||
sizes='192x192'
|
|
||||||
type='image/png'
|
|
||||||
/>,
|
|
||||||
<link
|
|
||||||
href='/assets/favicon-16x16.png'
|
|
||||||
key='/assets/favicon-16x16.png'
|
|
||||||
rel='icon'
|
|
||||||
sizes='16x16'
|
|
||||||
type='image/png'
|
|
||||||
/>,
|
|
||||||
<link
|
|
||||||
href='/assets/site.webmanifest'
|
|
||||||
key='/assets/site.webmanifest'
|
|
||||||
rel='manifest'
|
|
||||||
/>,
|
|
||||||
<link
|
|
||||||
color='#006400'
|
|
||||||
href='/assets/safari-pinned-tab.svg'
|
|
||||||
key='/assets/safari-pinned-tab.svg'
|
|
||||||
rel='mask-icon'
|
|
||||||
/>,
|
|
||||||
<meta
|
|
||||||
content='#006400'
|
|
||||||
key='msapplication-TileColor'
|
|
||||||
name='msapplication-TileColor'
|
|
||||||
/>,
|
|
||||||
<meta
|
|
||||||
content='/assets/mstile-144x144.png'
|
|
||||||
key='msapplication-TileImage'
|
|
||||||
name='msapplication-TileImage'
|
|
||||||
/>,
|
|
||||||
<meta content='#006400' key='theme-color' name='theme-color' />
|
|
||||||
];
|
|
||||||
|
|
||||||
export default favicons;
|
|
@ -1,14 +1,11 @@
|
|||||||
import favicons from './favicons';
|
|
||||||
import meta from './meta';
|
import meta from './meta';
|
||||||
import mathjax from './mathjax';
|
import mathjax from './mathjax';
|
||||||
import scripts from './scripts';
|
import scripts from './scripts';
|
||||||
|
|
||||||
const metaAndStyleSheets = meta
|
const metaAndStyleSheets = meta.concat(mathjax, scripts).map((element, i) => ({
|
||||||
.concat(favicons, mathjax, scripts)
|
...element,
|
||||||
.map((element, i) => ({
|
key: `meta-stylesheet-${i}`,
|
||||||
...element,
|
props: { ...element.props, key: `meta-stylesheet-${i}` }
|
||||||
key: `meta-stylesheet-${i}`,
|
}));
|
||||||
props: { ...element.props, key: `meta-stylesheet-${i}` }
|
|
||||||
}));
|
|
||||||
|
|
||||||
export default metaAndStyleSheets;
|
export default metaAndStyleSheets;
|
||||||
|
Reference in New Issue
Block a user