Skip to content

Commit

Permalink
Replace Path.expand with string interpolation in web generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazler committed Sep 13, 2023
1 parent c12404b commit 5256d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/templates/phx_single/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ config :esbuild,
default: [
args:
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
cd: Path.expand("..<%= if @in_umbrella, do: Path.join("/apps/", @app_name) %>/assets", __DIR__),
cd: Path.expand("..<%= if @in_umbrella, do: "/apps/#{@app_name}" %>/assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]<% end %><%= if @css do %>

Expand All @@ -51,7 +51,7 @@ config :tailwind,
--input=css/app.css
--output=../priv/static/assets/app.css
),
cd: Path.expand("..<%= if @in_umbrella, do: Path.join("/apps/", @app_name) %>/assets", __DIR__),
cd: Path.expand("..<%= if @in_umbrella, do: "/apps/#{@app_name}" %>/assets", __DIR__),
]<% end %>

# Configures Elixir's Logger
Expand Down

0 comments on commit 5256d6c

Please sign in to comment.