parent
5431b4df15
commit
bb2adabdeb
2 changed files with 33 additions and 45 deletions
|
|
@ -1,46 +1,34 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr">
|
<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>
|
<title><?= $site->title()->esc() ?></title>
|
||||||
<meta charset="utf-8">
|
<meta name="description" content="<?= $site->description()->esc() ?>">
|
||||||
<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="generator" content="Kirby (<?= Kirby::version() ?>)">
|
||||||
<meta name="description"
|
<meta name="robots" content="noindex nofollow">
|
||||||
content="<?= $site->description()->esc() ?>">
|
|
||||||
|
|
||||||
<meta name="generator" content="Kirby (<?= Kirby::version() ?>)">
|
<link rel="icon" href="/assets/favicons/favicon.ico" sizes="any">
|
||||||
<meta name="robots" content="noindex nofollow">
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
||||||
<link rel="icon" href="/assets/favicons/favicon.ico" sizes="any">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
<meta name="apple-touch-fullscreen" content="yes">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-title" content="<?= $site->title()->esc() ?>">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||||
<meta name="apple-touch-fullscreen" content="yes">
|
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
||||||
<meta name="apple-mobile-web-app-title"
|
<link rel="manifest" href="/manifest.webmanifest">
|
||||||
content="<?= $site->title()->esc() ?>">
|
<meta name="theme-color" content="#FFFFFF">
|
||||||
<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>
|
|
||||||
|
|
||||||
|
<?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>
|
<body>
|
||||||
<?php
|
|
||||||
$file = glob('./assets/css/*.css');
|
|
||||||
?>
|
|
||||||
<pre style="position: absolute; z-index: 999;">
|
|
||||||
</pre>
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from "vite";
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from "@vitejs/plugin-vue";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
base: '/',
|
base: "/",
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
outDir: "dist",
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
entryFileNames: 'assets/dist/[name].js',
|
entryFileNames: "assets/dist/[name].js",
|
||||||
assetFileNames: 'assets/dist/[name]-' + Date.now() + '.[ext]',
|
assetFileNames: "assets/dist/[name].[ext]",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue