This repository was archived by the owner on May 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +49
-6
lines changed
packages/vue-cli-plugin-vuetify/generator/templates/v3/src Expand file tree Collapse file tree 4 files changed +49
-6
lines changed Original file line number Diff line number Diff line change 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" >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11import { createApp } from 'vue'
22import vuetify from './plugins/vuetify'
3- import App from './App'
4- < _ % if ( router ) { % _ >
3+ import App from './App.vue '
4+ < % _ if ( router ) { _ % >
55import router from './router'
6- < _ % } % _ >
6+ < % _ } _ % >
77
88const app = createApp ( App )
9- < _ % if ( router ) { % _ >
9+ < % _ if ( router ) { _ % >
1010app . use ( router )
11- < _ % } % _ >
11+ < % _ } _ % >
1212app . use ( vuetify )
1313
1414app . mount ( '#app' )
Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments