News for hackers. Stuff that matters.
Re:Elixir v1.10 by jacquesm on Monday January 27, 2020 @09:05AM (#22159272)
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!

Re:Elixir v1.10 by josevalim on Monday January 27, 2020 @09:08AM (#22159305)
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.

Re:Elixir v1.10 by emerongi on Monday January 27, 2020 @09:32AM (#22159532)
There is a --no-webpack flag