terser-dir

Run terser on a folder, minify the results into a file/folder.

Usage no npm install needed!

<script type="module">
  import terserDir from 'https://cdn.skypack.dev/terser-dir';
</script>

README

terser-dir

Terser

Command to run terser on a folder and minify the result in a single file or a new folder.

Getting Started

Install the module with: npm i terser-dir

Documentation

Usage

terser-dir path [options]
--output  Specify a file/folder to write the minified code
--help    Print this list and exit.

Examples

$ terser-dir src/js --output bundle/
$ terser-dir src/js --output bundle/all.min.js