Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
791e653c
Commit
791e653c
authored
Sep 19, 2024
by
dechen lin
Browse files
feat: add web project
parent
9d689790
Changes
381
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
projects/web/vite.config.ts
projects/web/vite.config.ts
+30
-0
No files found.
projects/web/vite.config.ts
0 → 100644
View file @
791e653c
import
{
defineConfig
}
from
"
vite
"
;
import
react
from
"
@vitejs/plugin-react
"
;
import
path
from
"
path
"
;
// https://vitejs.dev/config/
export
default
defineConfig
({
plugins
:
[
react
()],
server
:
{
proxy
:
{
"
/api
"
:
{
// target: "https://staging.openxlab.org.cn/datasets",
target
:
"
http://10.6.16.161:5559
"
,
changeOrigin
:
true
,
},
},
},
css
:
{
modules
:
{
localsConvention
:
"
camelCaseOnly
"
,
// transfer kebab-case to camelCase
scopeBehaviour
:
"
local
"
,
generateScopedName
:
"
[name]__[local]___[hash:base64:5]
"
,
},
},
publicDir
:
"
public
"
,
resolve
:
{
alias
:
{
"
@
"
:
path
.
resolve
(
__dirname
,
"
./src
"
),
},
},
});
Prev
1
…
16
17
18
19
20
Next
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