Skip to content

VLazyImage not resolving paths (vite & relative paths) - Only CDN Images works #102

@anburocky3

Description

@anburocky3

Eg:

<img src="@/assets/img/logo.png" alt="Vue Logo" class="w-8 h-8" /> <!-- Image loads fine -->

But on using it with VLazyImage

<VLazyImage src="@/assets/img/logo.png" /> <!-- Image not loads --> 

These are my vite.config.ts

export default defineConfig({
  base: "./",
  resolve: {
    alias: {
      "@": resolve(__dirname, "./src"),
    },
  },
  plugins: [vue(), Components()],
});

Even, relative links are not working here. only cdn works for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions