buildSDK/less-bootstrap-compiler.php
authoredward <edward@roojs.com>
Thu, 30 Nov 2017 07:16:40 +0000 (15:16 +0800)
committeredward <edward@roojs.com>
Thu, 30 Nov 2017 07:16:40 +0000 (15:16 +0800)
buildSDK/less-bootstrap-compiler.php

index 2d68929..6796cbc 100644 (file)
@@ -36,19 +36,17 @@ foreach ($files as $src => $file){
         echo "{$src} does not exist...\n";
         continue;
     }
-    
-    echo "{$src} exist \n";
-
-//    try {
-//
-//        foreach ($file as $f){
-//            echo "Compiling - {$src} To {$f}\n";
-//
-//            $less->compileFile($src, $f);
-//        }
-//
-//    } catch (Exception $ex) {
-//        echo "lessphp fatal error: {$ex->getMessage()}\n";
-//    }
+
+    try {
+
+        foreach ($file as $f){
+            echo "Compiling - {$src} To {$f}\n";
+
+            $less->compileFile($src, $f);
+        }
+
+    } catch (Exception $ex) {
+        echo "lessphp fatal error: {$ex->getMessage()}\n";
+    }
 
 }
\ No newline at end of file