Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 693a483

Browse files
committed
chore(templates): add vite html and config templates.
1 parent cde9d29 commit 693a483

File tree

4 files changed

+49
-6
lines changed

4 files changed

+49
-6
lines changed

packages/vue-cli-plugin-vuetify/generator/templates/v3/src/components/HelloWorld.js.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212

1313
<v-col class="mb-4">
1414
<h1 class="display-2 font-weight-bold mb-3">
15-
Welcome to Vuetify V3 Alpha
15+
<%_ if (useVite) { _%>
16+
Welcome to Vuetify 3 + Vite Preview
17+
<%_ } else { _%>
18+
Welcome to Vuetify 3 Alpha
19+
<%_ } _%>
1620
</h1>
1721

1822
<p class="subheading font-weight-regular">
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" href="/favicon.ico" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Vite App</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="module" src="/src/main.js"></script>
14+
</body>
15+
16+
</html>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { createApp } from 'vue'
22
import vuetify from './plugins/vuetify'
3-
import App from './App'
4-
<_% if (router) { %_>
3+
import App from './App.vue'
4+
<%_ if (router) { _%>
55
import router from './router'
6-
<_% } %_>
6+
<%_ } _%>
77

88
const app = createApp(App)
9-
<_% if (router) { %_>
9+
<%_ if (router) { _%>
1010
app.use(router)
11-
<_% } %_>
11+
<%_ } _%>
1212
app.use(vuetify)
1313

1414
app.mount('#app')
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig } from 'vite'
2+
import vue from '@vitejs/plugin-vue'
3+
4+
// https://vitejs.dev/config/
5+
export default defineConfig({
6+
plugins: [vue()],
7+
define: {
8+
'process.env': {},
9+
},
10+
/* remove the need to specify .vue files https://vitejs.dev/config/#resolve-extensions
11+
resolve: {
12+
extensions: [
13+
'.js',
14+
'.json',
15+
'.jsx',
16+
'.mjs',
17+
'.ts',
18+
'.tsx',
19+
'.vue',
20+
]
21+
},
22+
*/
23+
})

0 commit comments

Comments
 (0)