I’m working on a greenfield webapp. The stack I’d like to try is Vue on top of Phoenix. I’m not new to vue, but I’m new to Phoenix.
I wonder how you all have been addressing the js build chain at development & build time.
I’d love to be able to use the vue cli as much as possible. JS tooling is definitely not my strong suit and so far I’ve found it incredibly useful, with super sane defaults and really cool features (ex, modern mode )
However, one side effect of using vue-cli is that webpack config is kind of abstracted away.
Right now I’m thinking about structuring my project as follows:
- Start a new phoenix project with
- Start a vue project using
vue-cli-service, with these two changes:
priv/staticshould be the build target
lib/myapp/templates/layout/app.html.eexshould be the
Would this work? Anyone here using vue & phoenix have a similar setup?
As well, how do you handle developing the vue component of your app (ie, leveraging
vue-cli-service serve ) with such a setup?
Many thanks, loving phoenix so far.