|
|
@ -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 */ |
|
|
|
/** 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, |
|
|
|
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: [ |
|
|
|
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: { |
|
|
|
build: { |
|
|
|
splitChunks: { |
|
|
|
splitChunks: { |
|
|
|
pages: true, |
|
|
|
pages: true, |
|
|
|