T
T
ThisFruit2021-08-03 18:15:18
npm
ThisFruit, 2021-08-03 18:15:18

Should node_modules be pushed to the server?

I want to upload a static site I created via ssh to the server. During development, I downloaded gulp and jquery in npm. built my dist via gulp, but with dependencies in index.html from node_modules. How to upload directly to the server and specify the path to index.html which will upload files from node_modules or copy minified files from node_nodules to the dist / vendor folder, change the paths in index.html and upload only dist.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-08-03
@delphinpro

copy minified files from node_nodules to dist/vendor folder change paths in index.html and upload only dist.

exactly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question