pull-minify-js
Minify JavaScript files or buffers inside a pull-stream
Minifies streamed JavaScript files using uglify-js
const pull = const read write = const minify =
Use minify.buffer
if you are streaming JavaScript buffers instead
Install
npm install --save pull-minify-js
yarn add pull-minify-js
Usage
minify(options?)
A stream that maps each JavaScript file to the minified version. See uglify-js
's options further configuration.
You can make it map all files regardless of extensions, by passing strict: false
minify.buffer(options?)
The base implementation that compiles buffer to buffer, instead of file to file. Options are the same
Maintained by Jamen Marz (See on Twitter and GitHub for questions & updates)