Skip to content

Instantly share code, notes, and snippets.

@nsams
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsams/509a037e3e685b6f7259 to your computer and use it in GitHub Desktop.
Save nsams/509a037e3e685b6f7259 to your computer and use it in GitHub Desktop.
diff --git a/Kwf/Assets/Dependency/File.php b/Kwf/Assets/Dependency/File.php
index 74ef509..bd4b10e 100644
--- a/Kwf/Assets/Dependency/File.php
+++ b/Kwf/Assets/Dependency/File.php
@@ -114,6 +114,10 @@ class Kwf_Assets_Dependency_File extends Kwf_Assets_Dependency_Abstract
$cssClass = substr($cssClass, strlen($i)+1);
}
}
+ if ($this->getFileName() == getcwd().'/themes/Theme/Menu/Main/Component.scss') {
+ p($paths);
+ d($cssClass);
+ }
if (substr($cssClass, -4) == '.css') {
$cssClass = substr($cssClass, 0, -4);
}
diff --git a/Kwf/Assets/Dependency/File/Scss.php b/Kwf/Assets/Dependency/File/Scss.php
index 911b62f..e167a40 100644
--- a/Kwf/Assets/Dependency/File/Scss.php
+++ b/Kwf/Assets/Dependency/File/Scss.php
@@ -21,6 +21,7 @@ class Kwf_Assets_Dependency_File_Scss extends Kwf_Assets_Dependency_File_Css
$cacheId = 'v2'.str_replace(array('\\', ':', '/', '.', '-'), '_', $fileName);
$ret = $cache->load($cacheId);
+ $ret = false;
if ($ret && !isset($ret['mtime'])) {
$ret = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment