fix: icon
This commit is contained in:
parent
1822c8dfd4
commit
747e7424e3
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<base href="/" />
|
||||
<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" />
|
||||
<title>Humus</title>
|
||||
<style>
|
||||
|
|
|
@ -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;
|
||||
};
|
17
build/web.webpack.config.js
Normal file
17
build/web.webpack.config.js
Normal 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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user