Commit 2d8a4d79 authored by  JosephK's avatar JosephK
Browse files

Fix preload warning + favicon.ico 404

parent ccfa9c86
...@@ -70,12 +70,12 @@ export default { ...@@ -70,12 +70,12 @@ export default {
/* Fill with empty string */ /* Fill with empty string */
while (preloadList.length < nodes) { while (preloadList.length < nodes) {
preloadList.push(''); preloadList.push('/favicon.ico');
} }
for (let i = 0; i < preloadList.length; i += 1) { for (let i = 0; i < preloadList.length; i += 1) {
let type = ''; let type = '';
if (/\.(png|jpg|gif|webp)$/.test(preloadList[i])) { type = 'image'; } if (/\.(png|jpg|gif|webp|ico)$/.test(preloadList[i])) { type = 'image'; }
if (/\.(ttf|eot|woff|woff2)$/.test(preloadList[i])) { type = 'font'; } if (/\.(ttf|eot|woff|woff2)$/.test(preloadList[i])) { type = 'font'; }
if (/\.(webm|mp4)$/.test(preloadList[i])) { type = 'video'; } if (/\.(webm|mp4)$/.test(preloadList[i])) { type = 'video'; }
......
...@@ -13,6 +13,7 @@ commons: # import everything if empty ...@@ -13,6 +13,7 @@ commons: # import everything if empty
# - country # - country
- doc - doc
# - emoji # - emoji
- flag
- git - git
- icon - icon
- license - license
......
...@@ -102,7 +102,7 @@ legals: ...@@ -102,7 +102,7 @@ legals:
siretNb: 500 715 776 00026 siretNb: 500 715 776 00026
address: 'Association Framasoft<br />Pierre-Yves Gosset<br /> address: 'Association Framasoft<br />Pierre-Yves Gosset<br />
c/o Locaux Motiv<br />10 bis, rue Jangot<br />69007 LYON<br />FRANCE' c/o Locaux Motiv<br />10 bis, rue Jangot<br />69007 LYON<br />FRANCE'
coprezName: Christelle Thomas, Maïtané Lenoir, Pierre-Yves Thouvenot coprezName: Christelle Thomas, Maïtané Lenoir, Pierre-Yves Thouvenot, Rodolphe Lemétayer
asso: asso:
files: https://soutenir.framasoft.org/sites/default/files/ files: https://soutenir.framasoft.org/sites/default/files/
partners: partners:
......
...@@ -23,16 +23,16 @@ ...@@ -23,16 +23,16 @@
<meta name="twitter:title" content=""> <meta name="twitter:title" content="">
<meta name="twitter:image" content=""> <meta name="twitter:image" content="">
<link id="preload-0" rel="preload" href="" as=""> <link id="preload-0" rel="preload" href="/favicon.ico" as="image">
<link id="preload-1" rel="preload" href="" as=""> <link id="preload-1" rel="preload" href="/favicon.ico" as="image">
<link id="preload-2" rel="preload" href="" as=""> <link id="preload-2" rel="preload" href="/favicon.ico" as="image">
<link id="preload-3" rel="preload" href="" as=""> <link id="preload-3" rel="preload" href="/favicon.ico" as="image">
<link id="preload-4" rel="preload" href="" as=""> <link id="preload-4" rel="preload" href="/favicon.ico" as="image">
<link id="preload-5" rel="preload" href="" as=""> <link id="preload-5" rel="preload" href="/favicon.ico" as="image">
<link id="preload-6" rel="preload" href="" as=""> <link id="preload-6" rel="preload" href="/favicon.ico" as="image">
<link id="preload-7" rel="preload" href="" as=""> <link id="preload-7" rel="preload" href="/favicon.ico" as="image">
<link id="preload-8" rel="preload" href="" as=""> <link id="preload-8" rel="preload" href="/favicon.ico" as="image">
<link id="preload-9" rel="preload" href="" as=""> <link id="preload-9" rel="preload" href="/favicon.ico" as="image">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -28,7 +28,7 @@ for (let i = 0; i < process.argv.length; i += 1) { ...@@ -28,7 +28,7 @@ for (let i = 0; i < process.argv.length; i += 1) {
} }
} }
const assets = []; const assets = [{ from: path.resolve(__dirname, './app/assets/img/icons/favicon.ico'), to: 'favicon.ico' }];
fs.readdirSync('./app/assets').forEach((file) => { fs.readdirSync('./app/assets').forEach((file) => {
if (!/scss/.test(file)) { if (!/scss/.test(file)) {
assets.push({ from: path.resolve(__dirname, `./app/assets/${file}`), to: file }); assets.push({ from: path.resolve(__dirname, `./app/assets/${file}`), to: file });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment