11ty / eleventy-plugin-bundle

Little bundles of code, little bundles of joy.
72 stars 3 forks source link

`getBundleFileUrl` doesn’t respect deeply nested output directories #4

Open zachleat opened 1 year ago

zachleat commented 1 year ago
let elev = new Eleventy("./test/bundler-to-file/", "./test/bundler-to-file/_site", {
    configPath: "./test/generic.eleventy.config.js"
});

eleventyConfig.dir.output only has _site here: https://github.com/11ty/eleventy-plugin-bundle/blob/ff0565ffcfcf2d0d9b668591408beb4cf518db00/eleventy.shortcodes.js#L64

so the bundle file gets written to ./_site/ rather than ./test/bundler-to-file/_site/.

zachleat commented 1 year ago

Circle back to https://github.com/11ty/eleventy-plugin-webc/blob/08407c7a155d0486a1a8606fa13dbf6f454e6406/test/test.js#L499