Browse Source

chore(config): scaffold vue3 vite project

main
Mohan 1 month ago
commit
0701513330
  1. 6
      .gitignore
  2. 12
      index.html
  3. 1382
      package-lock.json
  4. 18
      package.json
  5. 12
      vite.config.js

6
.gitignore

@ -0,0 +1,6 @@
node_modules/
dist/
*.local
.DS_Store
npm-debug.log*
*.log

12
index.html

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SongUI · 檐下</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

1382
package-lock.json
File diff suppressed because it is too large
View File

18
package.json

@ -0,0 +1,18 @@
{
"name": "songui",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.5.13"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"vite": "^6.0.3"
}
}

12
vite.config.js

@ -0,0 +1,12 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
Loading…
Cancel
Save