Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5d652f

Browse files
authored
chore(playground): upgrade vite (#5)
1 parentc5d87f8 commite5d652f

File tree

4 files changed

+139
-997
lines changed

4 files changed

+139
-997
lines changed

‎playground/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@
1818
"@types/koa-json":"^2.0.18",
1919
"@types/koa__router":"^8.0.2",
2020
"@types/ws":"^7.2.6",
21+
"@vitejs/plugin-vue":"^1.1.5",
2122
"@vue/compiler-sfc":"^3.0.4",
2223
"chokidar":"^3.4.0",
2324
"concurrently":"^5.2.0",
2425
"fast-glob":"^3.2.4",
2526
"fs-extra":"^9.0.1",
27+
"koa":"^2.13.1",
2628
"koa-bodyparser":"^4.3.0",
2729
"koa-error":"^3.2.0",
2830
"koa-json":"^2.0.2",
2931
"ts-node":"^8.10.2",
3032
"ts-node-dev":"1.1.1",
31-
"vite":"^1.0.0-rc.13",
33+
"vite":"^2.0.4",
3234
"ws":"^7.3.0"
3335
}
3436
}

‎playground/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends":"..",
2+
"extends":"../tsconfig.json",
33
"exclude": [],
44
"compilerOptions": {
55
"lib": ["ES2020","DOM"],

‎playground/vite.config.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
import{defineConfig}from'vite'
2+
importvuefrom'@vitejs/plugin-vue'
3+
14
constAPI_PORT=process.env.API_PORT||3002
25

3-
exportdefault{
4-
proxy:{
5-
'/api':{
6-
target:`http://localhost:${API_PORT}/`,
7-
changeOrigin:true,
8-
rewrite:(path:string)=>path.replace(/^\/api/,'')
6+
exportdefaultdefineConfig({
7+
server:{
8+
proxy:{
9+
'/api':{
10+
target:`http://localhost:${API_PORT}/`,
11+
changeOrigin:true,
12+
rewrite:(path:string)=>path.replace(/^\/api/,'')
13+
}
914
}
10-
}
11-
}
15+
},
16+
plugins:[
17+
vue()
18+
]
19+
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp