diff --git a/example/Makefile b/example/Makefile index d63a502..fd912ca 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,6 +1,6 @@ .PHONY: all clean -MPP = ../bin/mpp -Iassets/css -Iassets/js +MPP = ../bin/mpp -Iassets/* all: css/root.css js/root.js diff --git a/src/resolver.cr b/src/resolver.cr index c9e1115..fba8c60 100644 --- a/src/resolver.cr +++ b/src/resolver.cr @@ -21,7 +21,7 @@ class Resolver end def add(paths : Array(String)) - @search_paths.concat(paths.map { |path| File.expand_path(path) }) + paths.each { |path| Dir.glob(path) { |file| @search_paths << File.expand_path(file) } } end private def find(path)