Skip to content

Commit

Permalink
➕ add fortawesome package
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed Aug 23, 2024
1 parent 51e4c45 commit 2d213ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
</template>
<script lang="ts" setup>
import "@fortawesome/fontawesome-free/css/all.min.css";
const config = useRuntimeConfig();
const ownerName = useState(() => config.ownerName);
Expand Down Expand Up @@ -75,10 +77,6 @@ useHead({
rel: "shortcut icon",
href: "/api/getIcon",
},
{
rel: "stylesheet",
href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css",
},
],
});
</script>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"nuxt": "^3.11.2",
"png-to-ico": "^2.1.8",
"sharp": "^0.33.3",
Expand All @@ -22,4 +23,3 @@
},
"packageManager": "[email protected]"
}

8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d213ad

Please sign in to comment.