--- env: type: 'string' default: 'development' outputs: type: 'hash' --- {%- render 'script.html', src: 'assets/js/env.js' -%} {%- if env == 'production' -%} {%- for pack in outputs -%} {%- unless pack[1] contains 'entryPoint' -%}{%- continue -%}{%- endunless -%} {%- assign src = pack[0] -%} {%- render 'script.html', src: -%} {%- endfor -%} {%- else -%} {%- render 'script.html', src: 'pack.js' -%} {%- endif -%}