This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
Assets aren't proceesed when using pathPrefix
with EleventyHtmlBasePlugin
#246
Labels
🐞 bug
Something isn't working
Describe the bug
When using the
pathPrefix
eleventy config option withEleventyHtmlBasePlugin
, URLs are prefixed, so they don't refer to the assets any more, and vite doesn't process/copy them anymore.For example, when
pathPrefix
isn't used, there is anassets
folder in the build directory. Compiled css and images processed by the 11ty-img plugin are in it. The import alias is resolved to<link rel="stylesheet" href="/assets/index.4d32abd0.css">
.When
pathPrefix
is added, theassets
folder doesn't exist anymore, and the import alias isn't resolved:<link rel="stylesheet" href="/sarl/@root/styles/index.css">
.To Reproduce
Create a new slinkity site: https://slinkity.dev/docs/quick-start/
Add pathPrefix and htmlBase plugin to 11ty config:
Run
npm run build
.Version
Additional context
Related issue: #181
The text was updated successfully, but these errors were encountered: