Skip to content

Error raised when copying a folder instead of a file #9

@opheliagame

Description

@opheliagame

Here is my importmap

config :phoenix_importmap, :importmap, %{
  app: "/assets/js/app.js",
  topbar: "/assets/vendor/topbar.js",
  three: "/assets/vendor/threejs/three.module.js",
  "three/addons/": "/assets/vendor/jsm/",
  phoenix_html: "/deps/phoenix_html/priv/static/phoenix_html.js",
  phoenix: "/deps/phoenix/priv/static/phoenix.mjs",
  phoenix_live_view: "/deps/phoenix_live_view/priv/static/phoenix_live_view.esm.js"
}

I need to copy an entire folder, but when doing this an error happens

(File.CopyError) could not copy from "<path>/assets/vendor/jsm/" to "<path>/priv/static/assets/": illegal operation on a directory

Is there a way to get around this and enable using directories in importmaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions