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,12 +4,14 @@ require "./util"
class FS class FS
extend BakedFileSystem extend BakedFileSystem
{% if read_file? "#{__DIR__}/../dist/favicon.ico" %} {% if flag?(:release) %}
{% puts "baking ../dist" %} {% if read_file? "#{__DIR__}/../dist/favicon.ico" %}
bake_folder "../dist" {% puts "baking ../dist" %}
{% else %} bake_folder "../dist"
{% puts "baking ../public" %} {% else %}
bake_folder "../public" {% puts "baking ../public" %}
bake_folder "../public"
{% end %}
{% end %} {% end %}
end end