Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
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
刘怀志
qr-consistency-vue3
Commits
d3cc0342
Commit
d3cc0342
authored
Apr 14, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src): 测试环境地址
parent
f994bdcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
vite.config.js
vite.config.js
+12
-12
No files found.
vite.config.js
View file @
d3cc0342
...
@@ -18,10 +18,10 @@ export default defineConfig(({ mode, command }) => {
...
@@ -18,10 +18,10 @@ export default defineConfig(({ mode, command }) => {
// 设置路径
// 设置路径
'~'
:
path
.
resolve
(
__dirname
,
'./'
),
'~'
:
path
.
resolve
(
__dirname
,
'./'
),
// 设置别名
// 设置别名
'@'
:
path
.
resolve
(
__dirname
,
'./src'
)
'@'
:
path
.
resolve
(
__dirname
,
'./src'
)
,
},
},
// https://cn.vitejs.dev/config/#resolve-extensions
// https://cn.vitejs.dev/config/#resolve-extensions
extensions
:
[
'.mjs'
,
'.js'
,
'.ts'
,
'.jsx'
,
'.tsx'
,
'.json'
,
'.vue'
]
extensions
:
[
'.mjs'
,
'.js'
,
'.ts'
,
'.jsx'
,
'.tsx'
,
'.json'
,
'.vue'
]
,
},
},
// vite 相关配置
// vite 相关配置
server
:
{
server
:
{
...
@@ -33,9 +33,9 @@ export default defineConfig(({ mode, command }) => {
...
@@ -33,9 +33,9 @@ export default defineConfig(({ mode, command }) => {
'/dev-api'
:
{
'/dev-api'
:
{
target
:
'http://localhost:8989'
,
target
:
'http://localhost:8989'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
,
}
}
,
}
}
,
},
},
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
css
:
{
css
:
{
...
@@ -46,13 +46,13 @@ export default defineConfig(({ mode, command }) => {
...
@@ -46,13 +46,13 @@ export default defineConfig(({ mode, command }) => {
AtRule
:
{
AtRule
:
{
charset
:
(
atRule
)
=>
{
charset
:
(
atRule
)
=>
{
if
(
atRule
.
name
===
'charset'
)
{
if
(
atRule
.
name
===
'charset'
)
{
atRule
.
remove
()
;
atRule
.
remove
()
}
}
}
}
,
}
}
,
}
}
,
]
]
,
}
}
,
}
}
,
}
}
})
})
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