minify javascript in a stream using uglify-js
npm install minify-stream
var minifyStream = require('minify-stream') fs.createReadStream('app.js') .pipe(minifyStream()) .pipe(fs.createWriteStream('app.min.js'))
Create a new minify stream. Write a Javascript file or bundle to it. Possible options
are:
uglify
- An uglify module to use, defaults to terser
. It must have an uglify-compatible minify()
function.minify()
function as the second parameter. See the terser docs for available options.minify-stream
adds inline source maps by default. Use exorcist
to extract source maps from the output stream into a separate file. If you don't need source maps, pass the sourceMap: false
option to disable them.
minifyStream({ sourceMap: false })
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4