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

Support for Mounts #3428

Closed
Snugug opened this issue May 14, 2021 · 2 comments
Closed

Support for Mounts #3428

Snugug opened this issue May 14, 2021 · 2 comments

Comments

@Snugug
Copy link
Contributor

Snugug commented May 14, 2021

Clear and concise description of the problem

As a developer looking to use a tool to compile my HTML, like 11ty, I'd like to keep the compiled HTML directory separate from my asset directory so I don't need to juggle my compiled HTML in my Vite root.

Suggested solution

Add support for something similar to Snowpack mounts

Alternative

My current solution is compiling my HTML into my project root. git ignoring the compiled HTML, and deleting all of the compiled HTML using globing and then finding and deleting just the empty directories, which can be unreliable.

Additional context

Full configuration for this is available in this blog post

@jryans
Copy link

jryans commented Oct 8, 2021

I also need something like this as part of migrating from Snowpack to Vite. For the moment, I am using a basic resolveId plugin to redirect the mounted path to the files on disk, which is okay for my needs.

@bluwy
Copy link
Member

bluwy commented Dec 29, 2022

I think instead of another option, it would be better if this can be solved through a Vite plugin by mapping virtual HTML files to separate 11ty HTML files. This is blocked by #2321 however, but we could close this in favour of that issue.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants