B
B
Bogdan2017-04-13 11:35:16
JavaScript
Bogdan, 2017-04-13 11:35:16

How to correctly connect third-party JS libraries on Rails?

Hello. How to correctly connect third-party JS libraries on Rails? Now I just copy the js files to the project folder, maybe there are better solutions like in npm: installation and update from the console? For example, now you are interested in connecting the momentjs library

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-04-13
@k12th

Some libraries are also packaged in gems, but this is an exception at the moment.
As I understand it, the trend is now everywhere to create a package.json and Gulpfile.js (or whatever you want to collect statics) in the root and give the frontend at the mercy of someone who knows how to handle it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question