Reputation: 1080
This seems like it should be very easy, but I can't seem to figure it out!
How do I get js I install with node into the vendored javascript? I've been doing crazy things like npm install, then copying angular.js from the node_modules into the web/static/vendor folder.
Upvotes: 2
Views: 364
Reputation: 279
Phoenix uses Brunch to handle static assets by default. There is a guide to handling static assets on the Phoenix Framework website here: http://www.phoenixframework.org/docs/static-assets
If you'd like to use something other than Brunch, you can, and there is a guide to doing so on the same page (the example used there is Webpack, but Phoenix is static-asset-compilation-agnostic so you can use whatever you prefer).
Upvotes: 2