Skip to content

composes duplicates dependancies #58

Closed
@themitchy

Description

@themitchy

If multiple stylesheets are imported (or components importing different stylesheets) and those files compose from a common stylesheet (ie. icons.css) then the styles and composes of the common stylesheet will be duplicated for every import.

This gist shows a simple jsx which imports 2 modules, each of which imports a stylesheet composing from icons.css. Since icons.css composes from font-awesome, all of font-awesome is included in the resulting css twice.

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