Hacker News new | ask | show | jobs
by jacquesm 2338 days ago
Hello Jose, first of all, thank you for Elixer and Phoenix. A question that has been bugging me for a long time why Phoenix (arguably, built on one of the most reliable and battle tested stacks) has a dependency on NPM, something that I'd rather not see on any of my computers at all. Would you care to give insight into how this decision was reached and what if anything can be done to do Phoenix development and deploys without any NPM dependencies?

thank you!

1 comments

I believe there is a flag you can pass when you create your Phoenix application that removes webpack/npm/etc. If you are using Phoenix to build APIs, then you can pass `--no-html`, that will get rid of these and other dependencies. However, if you are writing JavaScript/CSS, than it is most likely that you want to use the tooling that exists in the Node ecosystem.

TL;DR - you can opt-out at any time.

There is a --no-webpack flag