Skip to content

Double imports occur #315

@Nimja

Description

@Nimja

If you have multiple mentions of an import, the file is included multiple times.

This is easy to fix in \Leafo\ScssPhp\Compiler

protected function importFile($path, $out)
{
    // see if tree is cached
    $realPath = realpath($path);
    if (isset($this->importCache[$realPath])) {
        // Nothing to do, already imported.
        return;

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