Are there ways to make node_modules more compact for client side usage? For example with nodewebkit?
I think about removing unecessary files and minification.
Thanks!
Are there ways to make node_modules more compact for client side usage? For example with nodewebkit?
I think about removing unecessary files and minification.
Thanks!
I think you can use npm install --production
, so you don't install unnecessary modules for your production environment like eg: grunt, gulp, mocha, etc. Of course it depends if you install the development modules with npm install --save-dev
Yes, there are ways.
Do the following in this order:
npm install --production
npm dedupe
to flatten the hirarchy and remove duplicates