Skip to content

Duplication when using @import across multiple files #324

Closed
@ianstormtaylor

Description

@ianstormtaylor

I have a main.less which imports other less files. And those files all import utils.less that contains useful mixins that I need to use everywhere.

But when I do this, the mixins get duplicated in the compiled code. Once for each time utils.less was imported.

CSS that should be around 100k is 1mb instead, making LESS completely unusable.

Anyone else having this problem? and any plans on a fix?

Thanks @cloudhead

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