Skip to content

ScssAsset: Parse for @imports and check if hasBeenModified #9

Description

@juniwalk
/**
 * @param  string  $file
 * @param  bool  $checkLastModified
 * @return bool
 */
public function hasBeenModified(string $file, bool $checkLastModified): bool
{
	if (!file_exists($file)) {
		return true;
	}

	if (!$checkLastModified) {
		return false;
	}

	// TODO: Parse for @imports and check those files too

	return filemtime($this->file) > filemtime($file);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions