Skip to content

Commit f9fc767

Browse files
committed
UPDATE: localhost default port;
Signed-off-by: HarmonySkull <[email protected]>
1 parent 537521f commit f9fc767

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ dist
116116
.yarn/install-state.gz
117117
.pnp.*
118118

119-
/.yarn/releases/yarn-berry.js
119+
/.yarn/releases/yarn-berry.cjs

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ dist
116116
.yarn/install-state.gz
117117
.pnp.*
118118

119-
/.yarn/releases/yarn-berry.js
119+
/.yarn/releases/yarn-berry.cjs

.run/Development.run.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<script value="dev" />
77
</scripts>
88
<node-interpreter value="project" />
9+
<package-manager value="yarn" />
910
<envs />
1011
<method v="2" />
1112
</configuration>
File renamed without changes.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
yarnPath: ".yarn/releases/yarn-berry.js"
1+
yarnPath: ".yarn/releases/yarn-berry.cjs"
22
nodeLinker: node-modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "template",
33
"private": true,
44
"version": "0.0.0",
5-
"type": "commonjs",
5+
"type": "module",
66
"scripts": {
77
"dev": "vite",
88
"dev:host": "vite --host",

vite.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
import { defineConfig } from 'vite'
21
import react from '@vitejs/plugin-react'
32

3+
import { defineConfig } from 'vite'
4+
45
// https://vitejs.dev/config/
56
export default defineConfig({
6-
plugins: [react()]
7+
plugins: [react()],
8+
server: {
9+
port: 3000,
10+
},
11+
preview: {
12+
port: 8080,
13+
},
714
})

0 commit comments

Comments
 (0)