From a287aaf267d90184313e9df621985e093584c643 Mon Sep 17 00:00:00 2001 From: Nogic <24802730+nogic1008@users.noreply.github.com> Date: Fri, 12 Aug 2022 07:47:45 +0000 Subject: [PATCH] build: fix config --- nuxt.config.ts | 61 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 0aa331b12..f8a319ad1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -5,28 +5,45 @@ import pkg from './package.json' const title = 'Consumer DDR' export default defineNuxtConfig({ - head: { - titleTemplate: `%s - ${title}`, - meta: [ - { charset: 'utf-8' }, - { name: 'viewport', content: 'width=device-width, initial-scale=1' }, - { hid: 'description', name: 'description', content: pkg.description } - ], - link: [ - { rel: 'icon', sizes: '16x16', type: 'image/png', href: '/icon-16.png' }, - { rel: 'icon', sizes: '32x32', type: 'image/png', href: '/icon-32.png' }, - { rel: 'icon', sizes: '48x48', type: 'image/png', href: '/icon-48.png' }, - { - rel: 'apple-touch-icon', - sizes: '180x180', - href: '/apple-touch-icon.png' - }, - { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, - { - rel: 'stylesheet', - href: 'https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css' - } - ] + app: { + head: { + titleTemplate: `%s - ${title}`, + meta: [ + { charset: 'utf-8' }, + { name: 'viewport', content: 'width=device-width, initial-scale=1' }, + { hid: 'description', name: 'description', content: pkg.description } + ], + link: [ + { + rel: 'icon', + sizes: '16x16', + type: 'image/png', + href: '/icon-16.png' + }, + { + rel: 'icon', + sizes: '32x32', + type: 'image/png', + href: '/icon-32.png' + }, + { + rel: 'icon', + sizes: '48x48', + type: 'image/png', + href: '/icon-48.png' + }, + { + rel: 'apple-touch-icon', + sizes: '180x180', + href: '/apple-touch-icon.png' + }, + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, + { + rel: 'stylesheet', + href: 'https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css' + } + ] + } }, css: ['~/assets/css/main.scss'], build: {