Mui + react

This commit is contained in:
2024-07-26 01:22:05 +02:00
parent 922aea543d
commit 96fa86d53a
10 changed files with 180 additions and 187 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -5
View File
@@ -5,11 +5,9 @@
<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" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title> <title>Vite + React + TS</title>
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-BPBbZBQK.js"></script> <script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-C45OJqkN.js"></script>
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_mui-DRbtxwvr.js"> <link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_base-BoHQx5PX.js">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_react-CYK1-5CH.js"> <link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/vendor_base-D83Ey19k.css">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_tanstack-BobQCO9J.js">
<link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/vendor_react-D83Ey19k.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -5
View File
@@ -13,15 +13,12 @@ export default defineConfig({
output: { output: {
manualChunks: (id) => { manualChunks: (id) => {
if (id.includes('node_modules')) { if (id.includes('node_modules')) {
if (id.includes('@mui/')) { if (id.includes('@mui/') || id.includes('react')) {
return 'vendor_mui'; return 'vendor_base';
} }
if (id.includes('@tanstack')) { if (id.includes('@tanstack')) {
return 'vendor_tanstack'; return 'vendor_tanstack';
} }
if (id.includes('react')) {
return 'vendor_react';
}
return 'vendor'; // all other package goes here return 'vendor'; // all other package goes here
} }