Skip to content

automatic import of SVG fails #4

@0phoff

Description

@0phoff

It seems that the settings from the vite.config.ts file regarding automatic import of svg files is not getting copied from the addon correctly.

In order to get everything working, end users should copy this into vite.config.ts in the root directory of their presentation:

import { defineConfig, UserConfig } from 'vite'

export default defineConfig({
  slidev: {
    components: {
      extensions: ['vue', 'md', 'js', 'ts', 'jsx', 'tsx', 'svg'],
    },
  },
} as UserConfig);

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