Only log the "baking dist/" message when building for release

This commit is contained in:
Alex Ling 2020-03-03 02:51:45 +00:00
parent 7a7c855ce4
commit 9ffe896705

View File

@ -4,6 +4,7 @@ require "./util"
class FS class FS
extend BakedFileSystem extend BakedFileSystem
{% if flag?(:release) %}
{% if read_file? "#{__DIR__}/../dist/favicon.ico" %} {% if read_file? "#{__DIR__}/../dist/favicon.ico" %}
{% puts "baking ../dist" %} {% puts "baking ../dist" %}
bake_folder "../dist" bake_folder "../dist"
@ -11,6 +12,7 @@ class FS
{% puts "baking ../public" %} {% puts "baking ../public" %}
bake_folder "../public" bake_folder "../public"
{% end %} {% end %}
{% end %}
end end
class StaticHandler < Kemal::Handler class StaticHandler < Kemal::Handler