Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@neodx/svg Alert on empty input #140

Open
secundant opened this issue Apr 6, 2024 · 0 comments
Open

@neodx/svg Alert on empty input #140

secundant opened this issue Apr 6, 2024 · 0 comments
Assignees
Labels
feature New feature or request scope:svg Issues related to svg

Comments

@secundant
Copy link
Owner

Users may inadvertently select the wrong source folder and become confused after a build that completes without any notification and visible changes.
For example, this config

// vite.config.ts
export default defineConfig({
  svg({
    root: 'broken-path'
  })
});

will yield to no result.

The solution is simple: we should display an alert with information about a possible mistake in the root path.

@secundant secundant added feature New feature or request scope:svg Issues related to svg labels Apr 6, 2024
@secundant secundant self-assigned this Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request scope:svg Issues related to svg
Projects
None yet
Development

No branches or pull requests

1 participant