configure vite

This commit is contained in:
MarcZierle 2022-06-17 12:39:30 +02:00
parent 7b35fe6583
commit 7b2d9a7d6c
5 changed files with 13 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

View File

@ -5,14 +5,14 @@ import {
} from '@/i18n.js' } from '@/i18n.js'
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/Home.vue' const HomeView = () => import('../views/Home.vue')
import LogsList from '../views/LogsList.vue' const LogsList = () => import('../views/LogsList.vue')
import LogTemplatesList from '../views/LogTemplatesList.vue' const LogTemplatesList = () => import('../views/LogTemplatesList.vue')
import CreateLog from '../views/CreateLog.vue' const CreateLog = () => import('../views/CreateLog.vue')
import CreateLogTemplate from '../views/CreateLogTemplate.vue' const CreateLogTemplate = () => import('../views/CreateLogTemplate.vue')
import CameraCapture from '../views/CameraCapture.vue' const CameraCapture = () => import('../views/CameraCapture.vue')
import ManagePhotos from '../views/ManagePhotos.vue' const ManagePhotos = () => import('../views/ManagePhotos.vue')
import DevView from '../views/DevView.vue' const DevView = () => import('../views/DevView.vue')
const routes = [ const routes = [
{ {

View File

@ -84,7 +84,7 @@ export default {
} }
.banner-bg { .banner-bg {
background-image: url('../assets/images/home_bg.jpg'); background-image: url('../assets/images/home_bg.webp');
background-size: cover; background-size: cover;
background-position: center; background-position: center;
width: 100%; width: 100%;

View File

@ -13,4 +13,8 @@ export default defineConfig({
host: true, host: true,
port: 8080, port: 8080,
}, },
preview: {
host: true,
port: 8080,
},
}) })