Fix the problem that minified assets in dist/ are not used.

This commit is contained in:
Alex Ling 2020-02-23 19:18:30 +00:00
parent 7a21f4dc9b
commit a7519a791e

View File

@ -5,9 +5,11 @@ require "./util"
class FS
extend BakedFileSystem
{% if read_file? "./dist" %}
{% if read_file? "#{__DIR__}/../dist/favicon.ico" %}
{% puts "baking ../dist" %}
bake_folder "../dist"
{% else %}
{% puts "baking ../public" %}
bake_folder "../public"
{% end %}
end