Skip to content

bundleAssetsFromCss behaving odd with assetFileNames #3009

@inolen

Description

@inolen

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/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions