Skip to content

Dynamically included stylesheets #611

@rellafella

Description

@rellafella

I have a project that use some dynamically included stylesheets from styles that are conditionally included for very page specific components.

I am running into an issue that because the template itself doesn't include this stylesheet with <link rel="stylesheet" ...> but rather it's being inserted via JS (don't worry I understand that this process could do with some improvement).

Even though my critical css is generating correctly, I am left with this warning for each css file that isn't found as a <link rel="stylesheet" ...>
Warning: Missing base path. Consider 'base' option. https://goo.gl/PwvFVb

Related: nystudio107/rollup-plugin-critical#1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions