gilest
Hi all
Relatively new to Elixir, but was curious to see how Phoenix might run with a basic importmap configuration.
Introducing, phoenix_importmap.
Benefits:
In dev - minimal file-based tooling, removal of esbuild transpilation step, parity with prod
In prod - more granular caching of js files since they are many rather than a few bundles
Curious to know if folks are interested in this approach, anyway.
Usual disclaimer - this is an early stage library. I’ve not yet used it in prod ![]()
Trending in RFCs
BeamScope
Why I created this: Needed some very particular metrics regarding the state of my Elixir cluster in a relatively small project...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex











Showing Posts 1 to 4- Show Best Posts
- Show All Posts (oldest first)
- Show All Posts (newest first)
jakeprem
This is really interesting thanks for making it!
I’ll have to take a closer look next time I venture outside the LiveView bubble.
derek-zhou
Neat. I am using a more bare bone nobuild setup. I made sym links of phoenix js into my static dir:
Then I directly import those phoenix js in my app.js:
If I need to use more than a couple of npm modules, I will consider using the importmap package.
jakeprem
Do these get copied correctly when you build releases too?
derek-zhou
I don’t copy assets from
assets/topriv/any more. My original js and css lives directly underpriv/static/and the phoenix js are symlink’ed topriv/static/js/and remain that way in the release. The symlinks are flatten in deploy.