React start

This commit is contained in:
Kilian Hofmann 2024-07-23 02:02:13 +02:00
parent 1bff7f46d7
commit f303c7423c
6 changed files with 53 additions and 9070 deletions

40
exam/dist/assets/index-CyGUUT41.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

20
exam/dist/index.html vendored
View File

@ -1,24 +1,12 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="/phpCourse/exam/dist/vite.svg"
/>
<link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<script
type="module"
crossorigin
src="/phpCourse/exam/dist/assets/index-D81sf-ye.js"
></script>
<link
rel="stylesheet"
crossorigin
href="/phpCourse/exam/dist/assets/index-DiwrgTda.css"
/>
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-CyGUUT41.js"></script>
<link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/index-DiwrgTda.css">
</head>
<body>
<div id="root"></div>

View File

@ -1,7 +1,7 @@
{
"name": "react",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -0,0 +1,7 @@
RewriteEngine On
RewriteBase /phpCourse/exam/dist
## Disallow direct entry over the dist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ / [L,NC,QSA,F]

View File

@ -7,5 +7,5 @@ export default defineConfig({
build: {
outDir: '../dist',
},
base: 'phpCourse/exam/dist',
base: '/phpCourse/exam/dist',
});