This repository was archived by the owner on May 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-39
lines changed
packages/vue-cli-plugin-vuetify Expand file tree Collapse file tree 5 files changed +8
-39
lines changed Original file line number Diff line number Diff line change 5
5
<%_ } else { _%>
6
6
<HelloWorld />
7
7
<%_ } _%>
8
- <v-app / >
8
+ </ v-app >
9
9
</template >
10
10
11
11
<script >
Original file line number Diff line number Diff line change 1
1
import { createApp } from "vue" ;
2
- import vuetify from "./vuetify" ;
2
+ import vuetify from "./plugins/ vuetify" ;
3
3
import App from "./App" ;
4
4
5
- import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome" ;
6
- import { library } from "@fortawesome/fontawesome-svg-core" ;
7
- import { fas } from "@fortawesome/free-solid-svg-icons" ;
8
-
9
- library . add ( fas ) ;
10
-
11
5
const app = createApp ( App ) ;
12
6
13
7
app . use ( vuetify ) ;
14
- app . component ( "FontAwesomeIcon" , FontAwesomeIcon ) ;
15
8
16
9
app . mount ( "#app" ) ;
Original file line number Diff line number Diff line change 1
1
import "@mdi/font/css/materialdesignicons.css" ;
2
2
import { createVuetify } from "vuetify" ;
3
- import { aliases , mdi } from "vuetify/src/iconsets/mdi" ;
4
- import { fa } from "vuetify/src/iconsets/fa-svg" ;
5
3
6
- export default createVuetify ( {
7
- // lang: {
8
- // locales,
9
- // },
10
- icons : {
11
- defaultSet : "mdi" ,
12
- aliases,
13
- sets : {
14
- mdi,
15
- fa,
16
- } ,
17
- } ,
18
- } ) ;
4
+ export default createVuetify ( ) ;
Original file line number Diff line number Diff line change @@ -42,23 +42,13 @@ const fonts = {
42
42
} ,
43
43
}
44
44
45
- function addDependencies ( api , iconFont , useV3 ) {
46
- let pkgOpts = {
45
+ function addDependencies ( api , iconFont ) {
46
+ api . extendPackage ( {
47
47
dependencies : {
48
48
...fonts . roboto . package ,
49
49
...fonts [ iconFont ] . package ,
50
- }
51
- }
52
-
53
- if ( useV3 ) pkgOpts = {
54
- ...pkgOpts ,
55
- // Use specified version or latest?
56
- "@fortawesome/fontawesome-svg-core" : "latest" ,
57
- "@fortawesome/free-solid-svg-icons" : "latest" ,
58
- "@fortawesome/vue-fontawesome" : "latest" ,
59
- }
60
-
61
- api . extendPackage ( pkgOpts )
50
+ } ,
51
+ } )
62
52
}
63
53
64
54
function addImports ( api , iconFont ) {
Original file line number Diff line number Diff line change 6
6
"preset" : " configure" ,
7
7
"replaceComponents" : true ,
8
8
"iconFont" : " mdi" ,
9
- "installFonts" : false ,
9
+ "installFonts" : true ,
10
10
"locale" : " en" ,
11
11
"useAlaCarte" : true ,
12
12
"useCustomProperties" : false ,
You can’t perform that action at this time.
0 commit comments