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

Adjusting file locations for Vite-related assets #16

Closed
nklsw opened this issue Mar 14, 2024 · 0 comments · Fixed by #17 or #48
Closed

Adjusting file locations for Vite-related assets #16

nklsw opened this issue Mar 14, 2024 · 0 comments · Fixed by #17 or #48

Comments

@nklsw
Copy link

nklsw commented Mar 14, 2024

I've been integrating Vite + Vue with Litestar using this plugin – super helpful, thanks!

I realized that it puts all the Vite-related assets (like vite.config.js, package.json, node_modules) right in the project root. I'm trying to keep my frontend stuff, including configs and dependencies, in a separate folder and couldn't find options in the docs to change these paths.

The goal would be to have a structure like this:

app.py
templates/
frontend/
├── node_modules/
├── dist/
├── public/
├── src/
├── package.json
├── package-lock.json
└── vite.config.js

instead of this:

app.py
templates/
frontend/
├── dist/
├── public/
└── src/
node_modules/
package.json
package-lock.json
vite.config.js

  1. Is there a clean way to do this already?
  2. If not, would this be useful addition to the plugin? Maybe as a configuration option?

Cheers,
Niklas

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