Skip to content

Commit 1f40709

Browse files
authored
Merge pull request #13 from isamu/vite
vite
2 parents 698140a + f56a77c commit 1f40709

File tree

6 files changed

+317
-3898
lines changed

6 files changed

+317
-3898
lines changed

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons%7CMaterial+Icons+Outlined" rel="stylesheet">
8+
<title>firebase-vue3-startup-kit</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

package.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "firebase-vue3-startup-kit",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"license": "MIT",
55
"scripts": {
6-
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint",
6+
"serve": "vite",
7+
"build": "vite build",
8+
"lint": "eslint src",
99
"format": "prettier --write '{src/**/*,*}.{js,ts,vue,json}'"
1010
},
1111
"dependencies": {
@@ -20,11 +20,7 @@
2020
"devDependencies": {
2121
"@typescript-eslint/eslint-plugin": "^6.15.0",
2222
"@typescript-eslint/parser": "^6.15.0",
23-
"@vue/cli-plugin-eslint": "^5.0.8",
24-
"@vue/cli-plugin-router": "^5.0.8",
25-
"@vue/cli-plugin-typescript": "^5.0.8",
26-
"@vue/cli-plugin-vuex": "^5.0.8",
27-
"@vue/cli-service": "^5.0.8",
23+
"@vitejs/plugin-vue": "^4.5.2",
2824
"@vue/compiler-sfc": "^3.3.8",
2925
"@vue/eslint-config-typescript": "^12.0.0",
3026
"autoprefixer": "^10.4.16",
@@ -37,6 +33,7 @@
3733
"prettier": "^3.0.3",
3834
"prettier-plugin-tailwindcss": "^0.5.7",
3935
"tailwindcss": "^3.3.5",
40-
"typescript": "5.3.2"
36+
"typescript": "5.3.2",
37+
"vite": "^5.0.10"
4138
}
4239
}

public/index.html

-18
This file was deleted.

src/router/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const routes: Array<RouteRecordRaw> = [
5252
];
5353

5454
const router = createRouter({
55-
history: createWebHistory(process.env.BASE_URL),
55+
history: createWebHistory(import.meta.BASE_URL),
5656
routes,
5757
});
5858

vite.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from 'vite';
2+
import vue from '@vitejs/plugin-vue'
3+
import path from 'path';
4+
5+
export default defineConfig({
6+
plugins: [
7+
vue(),
8+
],
9+
resolve: {
10+
alias: {
11+
'@': path.resolve(__dirname, './src')
12+
}
13+
},
14+
server: {
15+
port: 8080,
16+
},
17+
});

0 commit comments

Comments
 (0)