We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8015a1c + bb5deda commit 5a009d9Copy full SHA for 5a009d9
lib/scenic/assets/static.ex
@@ -466,10 +466,10 @@ defmodule Scenic.Assets.Static do
466
467
# build the file data and metas from the sources
468
library =
469
- case opts[:sources] do
470
- nil -> [{opts[:otp_app], @default_src_dir}, {:scenic, "deps/scenic/assets"}]
471
- srcs -> srcs
472
- end
+ opts
+ |> Keyword.get(:sources, [])
+ |> Keyword.put_new(opts[:otp_app], @default_src_dir)
+ |> Keyword.put_new(:scenic, "deps/scenic/assets")
473
|> Enum.reduce(library, &build_from_source(&2, &1, dst))
474
475
# add the default aliases
0 commit comments