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 vitepress #42

Open
2 tasks done
vchernin opened this issue Jun 30, 2024 · 1 comment
Open
2 tasks done

Support vitepress #42

vchernin opened this issue Jun 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vchernin
Copy link

Describe the feature you'd like to request

Vitepress is a static site generator for markdown pages. It uses vite under the hood and users can add plugins like this one. Unfortunately, vitepress has potential for new issues because it customizes the vite build on its own.

Describe the solution you'd like

Support for vitepress.

Some oddities I've found:

  • closeBundle() is called twice, presumably because vitepress builds bundles for the client and the server to support SSR. So if you have a bunch of images in the public directory, they will be compressed twice (putting timestamps at the start at end of close bundle seems to confirm the work is being doubled).
  • The paths as found by closeBundle() seem to be semi broken, although that may not be exclusive to vitepress, that issue for me is fixed by fix: issue with absolute output paths #41.

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.
@vchernin vchernin added the enhancement New feature or request label Jun 30, 2024
@natmfat
Copy link

natmfat commented Sep 26, 2024

this also seems to apply to Remix, but I imagine using the cache option would dramatically reduce the work being done (even if the files are looked at a second time)

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

No branches or pull requests

2 participants