Keep mui in main vendor bundle
This commit is contained in:
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
-102
File diff suppressed because one or more lines are too long
-72
File diff suppressed because one or more lines are too long
+173
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
Vendored
+3
-4
@@ -5,10 +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-BF6aZoB4.js"></script>
|
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-BXg0vY1Q.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_mui-DqRwP0O9.js">
|
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_react-CX3LCzMh.js">
|
||||||
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_react-BnzSvkeI.js">
|
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_tanstack-DJzNjLnJ.js">
|
||||||
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/vendor_tanstack-BjOH7Cun.js">
|
|
||||||
<link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/vendor_react-D83Ey19k.css">
|
<link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/vendor_react-D83Ey19k.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -13,9 +13,9 @@ export default defineConfig({
|
|||||||
output: {
|
output: {
|
||||||
manualChunks: (id) => {
|
manualChunks: (id) => {
|
||||||
if (id.includes('node_modules')) {
|
if (id.includes('node_modules')) {
|
||||||
if (id.includes('@mui/material')) {
|
// if (id.includes('@mui/material')) {
|
||||||
return 'vendor_mui';
|
// return 'vendor_mui';
|
||||||
}
|
// }
|
||||||
if (id.includes('@tanstack')) {
|
if (id.includes('@tanstack')) {
|
||||||
return 'vendor_tanstack';
|
return 'vendor_tanstack';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user