Abou
Explore posts from serversHow to change .icon of my website ?
@kapa.ai i add this
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: false }, // activer pour le mode dev (voir le temps de load du ssr etc, voir opti)
css: ['~/assets/scss/main.scss'],
modules: ['@nuxt/fonts', '@nuxt/image', '@nuxtjs/device'],
fonts: {
families: [
{
name: 'Poppins',
provider: 'google',
weights: ['400', '600', '700'],
styles: ['normal'],
subsets: ['latin']
}
]
},
runtimeConfig: {
public: {
apiBaseUrl: process.env.PUBLIC_API_BASE_URL || 'http://localhost:8000'
}
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
}
}
}
},
app: {
head: {
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico'
}
]
}
}
})
inside my nuxt.config but still dosen't have my good favicon...
17 replies
How to use svg
@kapa.ai when i'm using svgo, i got this error inside my terminal :
[Vue warn]: Component <Anonymous> is missing template or render function.
at <Anonymous>
at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
at <Anonymous key="/" vnode= { v_isVNode: true,
v_skip: true,
type:
{ name: 'index',
setup: [Function (anonymous)],
ssrRender: [Function: _sfc_ssrRender],
scopeId: 'data-v-02281a80',
__file: '/Users/ilies/IdeaProjects/whispr/pages/index.vue' },
props:
{ onVnodeUnmounted: [Function: onVnodeUnmounted],
ref:
RefImpl {
you'll find my code in a .txt
and this is my nuxt.config.ts :
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: false }, // activer pour le mode dev (voir le temps de load du ssr etc, voir opti)
css: ['~/assets/scss/main.scss'],
modules: ['@nuxt/fonts', '@nuxt/image', '@nuxtjs/device', 'nuxt-svgo'],
// add Poppins font
fonts: {
families: [
{
name: 'Poppins',
provider: 'google',
weights: ['400', '600', '700'],
styles: ['normal'],
subsets: ['latin']
}
]
},
runtimeConfig: {
public: {
apiBaseUrl: process.env.PUBLIC_API_BASE_URL || 'http://localhost:8000'
}
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
}
}
}
},
svgo: {
autoImportPath: '~/assets/svg',
}
})
22 replies