axelson
I have an application (a nerves application actually) that depends on a phoenix application. Are there any patterns facilitate building the assets in this case? Is it generally required to precompile the assets and commit them into the git repository?
I’ve been hacking around it by cd’ing into the deps directory and running npm install inside there and modifying the phoenix application configuration to point to to the deps directory but this is hacky and generally it isn’t good to build things inside the deps directory.
I tried to search to see if anyone has already asked about this but it was quite hard to find a good search term and I don’t recall anyone asking on the forum before.
Here’s a link to the project: GitHub - axelson/scenic-side-screen: Top-level app that runs multiple scenic apps underneath it · GitHub
And here’s the phoenix dependency: GitHub - axelson/govee_phx: Phoenix LiveView interface to Govee H6001 LED Bulb · GitHub
Trending in Questions
Other Trending Topics
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











First 2 of 2 Posts
LostKobrakai
You could look at how phoenix/phoenix libraries like live_dashboard do it and it seems to boil down to shipping the compiled asset in
priv/….Other options can be:
compile.app(example)axelson
Yeah I was hoping for an easier/built-in way if possible. Especially one that wouldn’t require committing the compiled assets.
Aliasing
compile.appdoesn’t seem to be enough on it’s own. A custom mix compiler seems like it might work but would be a bit annoying to implement.