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

View File

@ -1,7 +1,7 @@
{ {
"name": "react", "name": "react",
"private": true, "private": true,
"version": "0.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "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: { build: {
outDir: '../dist', outDir: '../dist',
}, },
base: 'phpCourse/exam/dist', base: '/phpCourse/exam/dist',
}); });