I have a simple config like so -
{
input: 'src/web/assets/index.html',
output: {
dir: 'dist/web',
assetFileNames: 'public/[name].[hash][extname]',
},
plugins: [
importMetaAssets(),
html({
bundleAssetsFromCss: true
})
]
}
In this case, all meta assets discovered by importMetaAssets() are output to the root of public/, however, assets discovered due to bundleAssetsFromCss end up in public/assets. It feels like assets discovered by both plugins should both end up in the root of public/.