FWIW: grunt-package-minifier
. My use case is a bit unusual since we are developing a cross-browser extension framework. Like Browserify
and unlike standard NodeJS deployments we want to minimize the size of our distribution, including any CommonJS modules. But unlike Browserify
we support CommonJS so we can keep the module structure rather than concatenating everything into one big file.
Essentially I strip all the package.json
, README, test files, etc. from node_modules
but keep the essential JavaScript files in a structure that can be used by a CommonJS module loader.