Answer the question
In order to leave comments, you need to log in
How to clean up sludge from npm packages?
There is an nw.js application (app.nw). It's not big itself (html+js+css+img ~ 3Mb), but it uses a number of npm packages of 20-50 megabytes each. As a result, the package takes over 180Mb. Basically, these packages contain slag: documentation, pictures, tests, source scripts. If you clean it with pens, for an ambulance, then the size drops to an acceptable 5-10 megabytes.
Are there ways to automate slag cleanup? You won’t do manual cleaning every time, for every sneeze.
Answer the question
In order to leave comments, you need to log in
find. -name "*.txt" -type f -deleteand so with all extensions, if without a key
-deletethen first look at the list that it is and double-check whether it is necessary to bang.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question