Skip to content

publicAssetsURL is not applied if build.rollupOptions.output.experimentalMinChunkSize is enabled #801

Description

@capraruioan

Reproduction is here:

https://github.com/capraruioan/nuxt-fonts-issue

if experimentalMinChunkSize is uncommented in nuxt.config.ts, after build we will have certain files that contain fonts imported like:

url(' + publicAssetsURL("/_fonts/EXbtpLv9LdpH50KYevd8nuO.....

and

url(/_fonts/EXbtpLv9LdpH50KYevd8nuO......

this causes the same font to be downloaded twice, once from the cdn, once from the base url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions