Copy js and json files

This commit is contained in:
Wout De Puysseleir 2023-05-02 15:26:46 -07:00
parent 1585a0b77d
commit a8e142486e

View file

@ -10,7 +10,7 @@ defmodule Mix.Tasks.LiveSvelte.ConfigureEsbuild do
Mix.Project.deps_paths(depth: 1)
|> Map.fetch!(:live_svelte)
|> Path.join("assets/copy/**/*{.js}")
|> Path.join("assets/copy/**/*.{js,json}")
|> Path.wildcard()
|> Enum.each(fn file ->
split = Path.split(file)