H
H
Hfnas2020-02-07 20:10:19
JavaScript
Hfnas, 2020-02-07 20:10:19

How do people install the jquery package and its plugins now?

Good evening,

I would like to know how jquery is connected in the layout / cms now?
Previously, as it was: we downloaded the jquery package and included a local link or a full link in the site template.

And now what is relevant? I would like to advise.

Now you are looking at the githubs of jquery , or its plugins. There they write 2 installation methods: through git and through npm. I would like to know the advantages and disadvantages of the two methods.

With the git, everything is clear, the folder is downloaded and connected to the project with a link.

what about "npm install"? In fact, jquery ends up in node_modules (you must use the --save attribute to get into package.json). The link to the /node_modules/ folder is not recommended to be used on the Internet. They say to use "webpack", "browserity", "requireJS". Tell me, dear pros, which of these instruments is better, and is more friendly with the gallp? I am using galp to compile sass in my project.

Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2020-02-07
@Hfnas

Since you're already using gulp, browserify looks like a reasonable choice.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question