Skip to content

Instantly share code, notes, and snippets.

@artemijeka
Last active March 15, 2023 17:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
<!-- Component.vue -->
<nuxt-img
      loading="lazy"
      :quality="80"
      class=""
      sizes="sm:328px xxl:150px"
      :src="'/test.jpg'"
      :alt="" />
<!--nuxt.config.ts-->
export default defineNuxtConfig({
  image: {
    // The screen sizes predefined by `@nuxt/image`:
    screens: {
      xs: 320,
      sm: 575.98,
      // md: 768,
      // lg: 1024,
      // xl: 1280,
      xxl: 9999999999999,
      // '2xl': 1536
    },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment