Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fc-minigame
Project
Project
Details
Activity
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
陈冲
fc-minigame
Commits
285e540b
Commit
285e540b
authored
Jun 02, 2026
by
陈冲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改vite配置
parent
983ba494
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
index.html
frontend-large/index.html
+1
-1
vite.config.ts
frontend-large/vite.config.ts
+4
-18
No files found.
frontend-large/index.html
View file @
285e540b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
小游戏-大屏
</title>
<title>
小游戏-大屏
</title>
<style>body
{
background
:
#FA6047
;}
</style>
<style>body
{
background
:
#FA6047
;}
</style>
<script>
localStorage
.
setItem
(
'domain'
,
'
https://hddpserver.guocai365.org.cn
'
);
</script>
<script>
localStorage
.
setItem
(
'domain'
,
''
);
</script>
</head>
</head>
<body>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
...
...
frontend-large/vite.config.ts
View file @
285e540b
...
@@ -7,25 +7,13 @@ import vue from '@vitejs/plugin-vue'
...
@@ -7,25 +7,13 @@ import vue from '@vitejs/plugin-vue'
import
vueDevTools
from
'vite-plugin-vue-devtools'
import
vueDevTools
from
'vite-plugin-vue-devtools'
const
buildBase
=
'/cc/pc/'
const
buildBase
=
'/cc/pc/'
const
buildOutDir
=
'dist/cc/pc'
function
cleanLegacyDistOutput
()
{
return
{
name
:
'clean-legacy-dist-output'
,
closeBundle
()
{
rmSync
(
resolve
(
__dirname
,
'dist/assets'
),
{
recursive
:
true
,
force
:
true
})
rmSync
(
resolve
(
__dirname
,
'dist/index.html'
),
{
force
:
true
})
rmSync
(
resolve
(
__dirname
,
'dist/favicon.ico'
),
{
force
:
true
})
},
}
}
function
copyImageAssets
()
{
function
copyImageAssets
()
{
return
{
return
{
name
:
'copy-image-assets'
,
name
:
'copy-image-assets'
,
closeBundle
()
{
closeBundle
()
{
const
source
=
resolve
(
__dirname
,
'src/assets/images'
)
const
source
=
resolve
(
__dirname
,
'src/assets/images'
)
const
target
=
resolve
(
__dirname
,
buildOutDir
,
'
assets/images'
)
const
target
=
resolve
(
__dirname
,
'dist/
assets/images'
)
if
(
!
existsSync
(
source
))
{
if
(
!
existsSync
(
source
))
{
return
return
...
@@ -41,24 +29,22 @@ function copyImageAssets() {
...
@@ -41,24 +29,22 @@ function copyImageAssets() {
export
default
defineConfig
(({
command
})
=>
({
export
default
defineConfig
(({
command
})
=>
({
base
:
command
===
'build'
?
buildBase
:
'/'
,
base
:
command
===
'build'
?
buildBase
:
'/'
,
build
:
{
build
:
{
outDir
:
buildOutDir
,
emptyOutDir
:
false
,
emptyOutDir
:
true
,
},
},
plugins
:
[
plugins
:
[
vue
(),
vue
(),
vueDevTools
(),
vueDevTools
(),
copyImageAssets
(),
copyImageAssets
(),
cleanLegacyDistOutput
(),
],
],
server
:
{
server
:
{
proxy
:
{
proxy
:
{
'/socket.io'
:
{
'/socket.io'
:
{
target
:
'http://1
27.0.0.1
:8082'
,
target
:
'http://1
92.168.1.23
:8082'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
ws
:
true
,
ws
:
true
,
},
},
'/manager'
:
{
'/manager'
:
{
target
:
'http://1
27.0.0.1
:8082'
,
target
:
'http://1
92.168.1.23
:8082'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
},
},
...
...
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