Commit b83f38142add9a7ea1ccf9b2fa1eccd32e8a7dd3

Thomas de Grivel 2019-01-07T16:35:45

fix asset compilation

diff --git a/asset.lisp b/asset.lisp
index 98cc8e3..0adbecb 100644
--- a/asset.lisp
+++ b/asset.lisp
@@ -36,7 +36,7 @@
    (path :type string)
    (source-path :type string)
    (url :type string)
-   (digest :type string
+   (digest :type (or null string)
            :initform nil
            :accessor asset-digest)))
 
diff --git a/find.lisp b/find.lisp
index e898baf..5f11456 100644
--- a/find.lisp
+++ b/find.lisp
@@ -53,12 +53,13 @@
                          (subseq name.ext 0 (- (length name.ext)
                                                (length (string ext))))
                          name.ext)))
-          (unless (find-in-assets type dir name ext assets)
-            (push (make-instance type
-                                 :name name
-                                 :source-dir dir
-                                 :source-ext ext)
-                  assets)))))
+          (when name
+            (unless (find-in-assets type dir name ext assets)
+              (push (make-instance type
+                                   :name name
+                                   :source-dir dir
+                                   :source-ext ext)
+                    assets))))))
     assets))
 
 ;;    Loop through extensions
diff --git a/package.lisp b/package.lisp
index 317c5be..8a62faf 100644
--- a/package.lisp
+++ b/package.lisp
@@ -28,6 +28,7 @@
                #:.jpeg
                #:.jpg
                #:.js
+               #:.less
                #:.png
                #:.svg
                #:.ttf