Skip to content

@import of css from svelte component in node_modules #167

@TheRealThor

Description

@TheRealThor

I am using module (filepond-svelte) that imports css itself from another node_module (filepond) with the directive

<style global> @import '/filepond/dist/filepond.min.css'; </style>

When I am using hot reload development option, this is being added to the DOM

<style id="svelte-1x6jndj-style">
@import '/filepond/dist/filepond.min.css';
</style>

This import cannot be reached by the browser (404), since it is served from 'public' and not from 'node_modules'.
How can I configure svelte-loader to inline the content of the css file that is should be imported?

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