tsminify

Typescript source file minifier providing identifier mangling and whitespace removal.

Usage no npm install needed!

<script type="module">
  import tsminify from 'https://cdn.skypack.dev/tsminify';
</script>

README

npm version Build Status

TsMinify

TsMinify is a Typescript minifier.

Top Features

  • Typescript source file minification with identifier shortening and whitespace removal.

How to install

npm install tsminify

API

tsminify.src( projectConfigPath: string, settings: any )

Where:

projectConfigPath is a relative directory path to the default Typescript project file named "tsconfig.json". Or, projectConfigPath is a relative path to a named Typescript project file.

Building TsMinifyProject

TsMinify depends on NPM as a package manager and Gulp as a build tool. If you haven't already, you'll need to install both these tools in order to build TsMinify.

Once Gulp is installed, you can build it with the following commands:

npm install
gulp build