Skip to content

Commit

Permalink
feat(image): add nuxt/image
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosugamea committed Jan 19, 2024
1 parent 7b56b00 commit 9c99862
Show file tree
Hide file tree
Showing 5 changed files with 537 additions and 10 deletions.
5 changes: 5 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export default defineNuxtConfig({
routes: getContentRoutes()
}
},
image: {
quality: 80,
format: ['webp']
},
content: {
markdown: {
remarkPlugins: ['remark-breaks']
Expand All @@ -38,6 +42,7 @@ export default defineNuxtConfig({
'@nuxtjs/google-fonts',
'@nuxt/content',
'@nuxtjs/i18n',
'@nuxt/image',
(_, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
if (!config.plugins) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"dependencies": {
"@nuxt/content": "^2.10.0",
"@nuxt/image": "1.3.0",
"@vueuse/nuxt": "^10.7.1"
}
}
Loading

0 comments on commit 9c99862

Please sign in to comment.