<%= if @namespaced? || @ecto || @generators do %> config :<%= @web_app_name %><%= if @namespaced? do %>, namespace: <%= @web_namespace %><% end %><%= if @ecto do %>, ecto_repos: [<%= @app_module %>.Repo]<% end %><%= if @generators do %>, generators: <%= inspect @generators %><% end %> <% end %># Configures the endpoint config :<%= @web_app_name %>, <%= @endpoint_module %>, url: [host: "localhost"], render_errors: [view: <%= @web_namespace %>.ErrorView, accepts: ~w(<%= if @html do %>html <% end %>json), layout: false], pubsub_server: <%= @app_module %>.PubSub, live_view: [signing_salt: "<%= @lv_signing_salt %>"]<%= if @assets do %> # Configure esbuild (the version is required) config :esbuild, version: "0.14.0", default: [ args: ~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*), cd: Path.expand("../apps/<%= @web_app_name %>/assets", __DIR__), env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)} ]<% end %>