How to prepare to deploy your application files in npm/node_modules?

Began to study npm. When you install the package (locally) in a folder node_modules/package, in some cases, loaded a fairly large number of files. At the same time, we - as a package user, usually interested in *min.js/*min.css and if so, then some assets. It is clear that you can before downloading to the server "hands" everything you need to fish, and the rest just don't load. But something tells me that you can avoid "manual thrust": what are modern ways to automate this process?
April 7th 20 at 15:25
1 answer
April 7th 20 at 15:27
Any build system something like webpack or rollupjs. The point is that they analyzed and form the program with all *min.js/*min.css and assets if any.
The prod is filled with only the final bundle

Find more questions by tags DeploymentJavaScriptnpm