Browse Source

fix(nc-gui): move meta and link to head

pull/5903/head
Wing-Kam Wong 12 months ago
parent
commit
a5fd861683
  1. 43
      packages/nc-gui/nuxt.config.ts

43
packages/nc-gui/nuxt.config.ts

@ -31,6 +31,27 @@ export default defineNuxtConfig({
},
/** In production build we need to load assets using relative path, to achieve the result we are using cdnURL */
cdnURL: process.env.NODE_ENV === 'production' ? '.' : undefined,
head: {
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1',
},
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || '',
},
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: './favicon.ico',
},
],
}
},
css: [
@ -47,28 +68,6 @@ export default defineNuxtConfig({
},
},
meta: {
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: './favicon.ico',
},
],
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1',
},
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || '',
},
],
},
build: {
splitChunks: {
pages: true,

Loading…
Cancel
Save