Open tombreit opened 1 year ago
Here's a partial solution: don't use EleventyHtmlBasePlugin, and instead do this:
eleventyConfig.addPlugin(EleventyVitePlugin, {
viteOptions: { base: "/foo" },
})
This doesn't handle <a href>
s, and it requires configuration in your .eleventy.js
instead of on the command line, but it works well enough.
When deploying to gitlab pages (and locally), basically deploying to a subdir, I did not manage to get eleventy-plugin-vite working together with the eleventy build argument
--pathprefix
and the eleventy HTML base plugin:My setup (simplified):
Do you happen to have a tip on where my error might be?
In another project I successfully use
eleventy-plugin-base
andparcel
as an asset bundler with--pathprefix
.