Added preload to scripts, sttyles and fonts. Moved font assets to static folder

This commit is contained in:
Liyas Thomas
2019-12-05 06:17:41 +05:30
parent 0028d03e1b
commit c80634b026
9 changed files with 14 additions and 7 deletions

View File

@@ -31,6 +31,13 @@ export default {
server: {
host: "0.0.0.0" // default: localhost
},
render: {
bundleRenderer: {
shouldPreload: (file, type) => {
return ['script', 'style', 'font'].includes(type)
}
}
},
head: {
title: `${meta.name} \u2022 ${meta.shortDescription}`,
meta: [