Through npm install jquery, how to call jquery in html file at this time?

  node.js, question

We all know that the following method is ok when using plug-ins.

<script src="/pub/javascripts/jquery.min.js" type="text/javascript"></script>

But when I want to use npm install jquery to install the entire jquery module into the node-modules file, is this still the following sample to call?

<script src="/node_modules/jquery/dist/jquery.min.js"type="text/javascript"></script>

Generally, calling a module in a js file takes the following form

var xxx=require('XXXX');

This raises such questions. . .

You can usewebpack.

So you canvar jQuery = require('jQuery')The