K
K
Kirill Ozeretskovsky2020-02-17 10:33:29
JavaScript
Kirill Ozeretskovsky, 2020-02-17 10:33:29

How to properly prepare files in npm/node_modules for deployment of your application?

Started learning npm. When installing a package (locally), a fairly large number of files are downloaded to the node_modules/package folder in some cases. At the same time, we, as the user of the package, are usually interested in *min.js/*min.css and, if any, then some assets. It is clear that before uploading to the server, you can fish out everything you need "by hand", and simply do not upload the rest. But something tells me that "manual traction" can be avoided: what are the modern ways to automate this process?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-17
@OZKA

Any build system like webpack or rollupjs . The bottom line is that they independently analyze and form the program with all *min.js/*min.css and assets, if any.
Only the final bundle is uploaded for sale

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question