4 ms·
There should be some optimizer for npm modules. The current system is silly. Popcorn Time installs around 5000 files as part of its node_modules. How is that us
by MichaelGG 11y ago
There should be some optimizer for npm modules. The current system is silly. Popcorn Time installs around 5000 files as part of its node_modules. How is that useful?
There should be some way to combine things into a single module/file or otherwise glob it all together, while removing pointless test, docs, and Adventure Time animated gifs from your deps folder.
- jessaustin 11y agoApparently imminent npm v3 "flattens" node_modules/, which should help with this problem. At the same time I worry that version compatibility might become undecidable... Although I'm sure there are module maintainers shipping AT gifs, we can't really blame npm for that.
- 131hn 11y agoBy its design _browserify_ can be very powerfull on the node space (there are dedicated options in this way). We use it a lot (with grunt & co) to pack & deploy production code (with excellent result)