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
If I want to supply a custom output filename, I need to still supply output in the options, otherwise this library skips writing.
This is confusing!
constproduction=process.env.ELEVENTY_ENV==='production';constextension=production ? '.min' : '';eleventyConfig.addPlugin(pluginESbuild,{entryPoints: {site: 'src/assets/scripts/site.js',},output: '_site/assets/scripts',// supply a value to trick plugin to execute, but overidden with 'outfile' belowesbuild: {bundle: production,format: 'esm',minify: production,sourcemap: true,outfile: `_site/assets/scripts/site${extension}.js`,},});
I realize that output is a nice convenience, but the way it interacts with outfile is unexpected.
The text was updated successfully, but these errors were encountered:
If I want to supply a custom output filename, I need to still supply
output
in the options, otherwise this library skips writing.This is confusing!
I realize that
output
is a nice convenience, but the way it interacts withoutfile
is unexpected.The text was updated successfully, but these errors were encountered: