parent
5431b4df15
commit
bb2adabdeb
2 changed files with 33 additions and 45 deletions
|
|
@ -1,46 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
|
||||
<title><?= $site->title()->esc() ?></title>
|
||||
<meta name="description" content="<?= $site->description()->esc() ?>">
|
||||
|
||||
<title><?= $site->title()->esc() ?></title>
|
||||
<meta name="description"
|
||||
content="<?= $site->description()->esc() ?>">
|
||||
<meta name="generator" content="Kirby (<?= Kirby::version() ?>)">
|
||||
<meta name="robots" content="noindex nofollow">
|
||||
|
||||
<meta name="generator" content="Kirby (<?= Kirby::version() ?>)">
|
||||
<meta name="robots" content="noindex nofollow">
|
||||
|
||||
<link rel="icon" href="/assets/favicons/favicon.ico" sizes="any">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-touch-fullscreen" content="yes">
|
||||
<meta name="apple-mobile-web-app-title"
|
||||
content="<?= $site->title()->esc() ?>">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" content="#FFFFFF">
|
||||
|
||||
<?php if (Dir::exists('assets/dist')): ?>
|
||||
<script type="module"
|
||||
src="<?= url('assets/dist/index.js') ?>" defer></script>
|
||||
<?php $cssFileName = glob('./assets/dist/*.css')[0]; ?>
|
||||
<link rel="stylesheet"
|
||||
href="<?= url('assets/dist/' . $cssFileName) ?>">
|
||||
<?php else: ?>
|
||||
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
||||
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
||||
<?php endif ?>
|
||||
</head>
|
||||
<link rel="icon" href="/assets/favicons/favicon.ico" sizes="any">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-touch-fullscreen" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="<?= $site->title()->esc() ?>">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" content="#FFFFFF">
|
||||
|
||||
<?php if (Dir::exists('assets/dist')): ?>
|
||||
<script type="module" src="<?= url('assets/dist/index.js') ?>" defer></script>
|
||||
<link rel="stylesheet" href="<?= url('assets/dist/index.css') ?>">
|
||||
<?php else: ?>
|
||||
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
||||
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
||||
<?php endif ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
$file = glob('./assets/css/*.css');
|
||||
?>
|
||||
<pre style="position: absolute; z-index: 999;">
|
||||
</pre>
|
||||
|
|
@ -1,15 +1,15 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: '/',
|
||||
base: "/",
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
outDir: "dist",
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: 'assets/dist/[name].js',
|
||||
assetFileNames: 'assets/dist/[name]-' + Date.now() + '.[ext]',
|
||||
entryFileNames: "assets/dist/[name].js",
|
||||
assetFileNames: "assets/dist/[name].[ext]",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue