React start
This commit is contained in:
Vendored
+40
File diff suppressed because one or more lines are too long
Vendored
-9052
File diff suppressed because it is too large
Load Diff
Vendored
+4
-16
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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]
|
||||||
@@ -7,5 +7,5 @@ export default defineConfig({
|
|||||||
build: {
|
build: {
|
||||||
outDir: '../dist',
|
outDir: '../dist',
|
||||||
},
|
},
|
||||||
base: 'phpCourse/exam/dist',
|
base: '/phpCourse/exam/dist',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user