Skip to content

Dynamic Vite generated CSS import #447

@jefffairson

Description

@jefffairson

Hello there,

For a project, I build my assets with Vite.
In the config I can place my file which is great, but I have en error building config if I do this :

$specificSharpAsset = (new Vite())->asset('resources/sass/sharp.scss');
return [
  "extensions" => [
        "assets" => [
            "strategy" => "asset",
            "head" => [
                $specificSharpAsset,
            ],
        ]
    ],
];

When digging to find a solution, I found out that it's the asset function that's causing the issue.
Have you got a clean solution which can suits my needs ?

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