fix: icon

This commit is contained in:
cha0s 2023-11-30 20:11:48 -06:00
parent 1822c8dfd4
commit 747e7424e3
3 changed files with 18 additions and 22 deletions

View File

@ -3,7 +3,7 @@
<head> <head>
<base href="/" /> <base href="/" />
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="icon" type="image/png" href="/icon.png" /> <link rel="icon" type="image/png" href="/assets/icon.png" />
<meta name="viewport" content="width=device-width, user-scalable=no" /> <meta name="viewport" content="width=device-width, user-scalable=no" />
<title>Humus</title> <title>Humus</title>
<style> <style>

View File

@ -1,21 +0,0 @@
/* eslint-disable import/no-extraneous-dependencies */
const copy = require('@neutrinojs/copy');
module.exports = async (flecks) => {
// eslint-disable-next-line global-require
const config = await require('@flecks/web/server/build/web.neutrinorc')(flecks);
config.use.push(
copy({
copyUnmodified: true,
patterns: [
{
from: 'icon.png',
to: 'web/assets/icon.png',
},
],
}),
);
return config;
};

View File

@ -0,0 +1,17 @@
const {copy} = require('@flecks/core/server');
const configFn = require('@flecks/web/server/build/web.webpack.config');
module.exports = async (env, argv, flecks) => {
const config = await configFn(env, argv, flecks);
config.plugins.push(
copy({
patterns: [
{
from: 'icon.png',
to: 'assets/icon.png',
},
],
}),
);
return config;
};