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

Vinxi not use vite.config.ts in the root folder #399

Open
condef5 opened this issue Oct 14, 2024 · 1 comment
Open

Vinxi not use vite.config.ts in the root folder #399

condef5 opened this issue Oct 14, 2024 · 1 comment

Comments

@condef5
Copy link

condef5 commented Oct 14, 2024

I wanted to load some .aseprite files but I couldn't

This is my vite.config.ts file.

import { defineConfig } from "vite";

export default defineConfig(({ mode }) => {
  return {
    assetsInclude: ["**/*.aseprite"],
  };
});
image
@condef5 condef5 changed the title Vinxy not use vite.config.ts in the root folder Vinxi not use vite.config.ts in the root folder Oct 14, 2024
@SeanCassiere
Copy link
Contributor

If I'm not mistaken, your Vite settings (in vite.config.ts) needs to be passed into the necessary routers in your Vinxi config (with exception to plugins).

Looking at the source of SolidStart, their setup is spreading the config like this.
https://github.com/solidjs/solid-start/blob/71236986c21527267ce36221c964cd2c5fca705f/packages/start/config/index.js#L103-L113

Also, reading the error message in your screenshot, it looks like you need a loader that can handle the .aseprite file extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants