Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
f60906ce
Commit
f60906ce
authored
Feb 26, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak vite config
parent
5962c6d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
vite.config.ts
web/vite.config.ts
+3
-7
No files found.
web/vite.config.ts
View file @
f60906ce
...
@@ -43,12 +43,8 @@ export default defineConfig({
...
@@ -43,12 +43,8 @@ export default defineConfig({
build
:
{
build
:
{
rollupOptions
:
{
rollupOptions
:
{
output
:
{
output
:
{
entryFileNames
:
"app.[hash].js"
,
entryFileNames
:
"assets/app.[hash].js"
,
chunkFileNames
:
(
chunkInfo
)
=>
{
chunkFileNames
:
"assets/[name].[hash].js"
,
const
facadeModuleId
=
chunkInfo
.
facadeModuleId
?
chunkInfo
.
facadeModuleId
.
split
(
"/"
)
:
[];
const
name
=
facadeModuleId
[
facadeModuleId
.
length
-
2
]
||
"[name]"
;
return
`assets/
${
name
}
/[name].[hash].js`
;
},
assetFileNames
:
"assets/[name].[hash][extname]"
,
assetFileNames
:
"assets/[name].[hash][extname]"
,
manualChunks
:
{
manualChunks
:
{
"react-vendor"
:
[
"react"
,
"react-dom"
,
"react-router-dom"
],
"react-vendor"
:
[
"react"
,
"react-dom"
,
"react-router-dom"
],
...
@@ -57,7 +53,7 @@ export default defineConfig({
...
@@ -57,7 +53,7 @@ export default defineConfig({
"katex-vendor"
:
[
"katex"
],
"katex-vendor"
:
[
"katex"
],
"highlight-vendor"
:
[
"highlight.js"
],
"highlight-vendor"
:
[
"highlight.js"
],
"mermaid-vendor"
:
[
"mermaid"
],
"mermaid-vendor"
:
[
"mermaid"
],
"
map
-vendor"
:
[
"leaflet"
,
"react-leaflet"
],
"
leaflet
-vendor"
:
[
"leaflet"
,
"react-leaflet"
],
},
},
},
},
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment