Skip to content

@import should import ONCE (default behavior) #396

@akomm

Description

@akomm

@see: less/less.js#212
They came to the conclusion, that @import default behavior should be to import ONCE. Its already implemented that way.

lessphp dont follow this behavior.

I propose to add the following:

// less.inc.php line 112 in \lessc::tryImport()
if(array_key_exists(realpath($realPath), $this->allParsedFiles())) {
    return array(false, '');
}
// less.inc.php line 45 in \lessc property list
protected $allParsedFiles = array();

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