You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good catch! Thanks for the report. I think your fix is reasonable. If there're no css files, we should just stop requiring it. Would you like to make a PR? 👀
Describe the bug
I started building a custom theme and haven't imported any css to
index.js
yet. Runningvitepress build
throws an error:render.js:53
is trying to getcssChunk.fileName
:but it is undefined since there are not css chunks.
The same happens if you try to import an empty .css file to
index.js
.vitepress dev
does not throw the error.To Reproduce
Steps to reproduce the behavior:
(notice how there are no .css imports in the docs either)
vitepress build
Reproduction repo: https://github.com/domnantas/domnantas.lt/tree/no-css-chunks
Expected behavior
Build should not fail when building without css
System Info
Additional context
would fix this, but maybe there are better ways
The text was updated successfully, but these errors were encountered: