fix #124
This commit is contained in:
parent
e2d718adc5
commit
5431b4df15
2 changed files with 45 additions and 33 deletions
|
|
@ -1,34 +1,46 @@
|
||||||
<!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">
|
|
||||||
|
|
||||||
<title><?= $site->title()->esc() ?></title>
|
<head>
|
||||||
<meta name="description" content="<?= $site->description()->esc() ?>">
|
<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">
|
||||||
|
|
||||||
<meta name="generator" content="Kirby (<?= Kirby::version() ?>)">
|
<title><?= $site->title()->esc() ?></title>
|
||||||
<meta name="robots" content="noindex nofollow">
|
<meta name="description"
|
||||||
|
content="<?= $site->description()->esc() ?>">
|
||||||
|
|
||||||
<link rel="icon" href="/assets/favicons/favicon.ico" sizes="any">
|
<meta name="generator" content="Kirby (<?= Kirby::version() ?>)">
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
<meta name="robots" content="noindex nofollow">
|
||||||
<link rel="apple-touch-icon" href="/assets/favicons/apple-touch-icon.png">
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<link rel="icon" href="/assets/favicons/favicon.ico" sizes="any">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<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" content="<?= $site->title()->esc() ?>">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
<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">
|
||||||
<link rel="manifest" href="/manifest.webmanifest">
|
<meta name="apple-mobile-web-app-title"
|
||||||
<meta name="theme-color" content="#FFFFFF">
|
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>
|
||||||
|
|
||||||
<?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].[ext]",
|
assetFileNames: 'assets/dist/[name]-' + Date.now() + '.[ext]',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue