@shanzhai/minify-javascript-step
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

@shanzhai/minify-javascript-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which minifies a Javascript file.

Usage

Within a trigger's event handler, return an instance of MinifyJavascriptStep similar to the following:

new MinifyJavascriptStep(
  `A description of the operation being performed`,
  new AnInputOfUnminifiedJavascript(),
  new AnInputOfAnObjectOfGlobalConstants(),
  new AnOutputOfMinifiedJavascript()
);

Configuration Notes

The configuration used is highly aggressive.

It assumes that no other script in the page needs any of top-level declarations, and leaves only object property minification disabled (due to its high risk of unexpected side effects).

Dependencies

This package has the following runtime dependencies:

Name Version
uglify-js 3.15.4

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status

Readme

Keywords

none

Package Sidebar

Install

npm i @shanzhai/minify-javascript-step

Weekly Downloads

0

Version

0.0.15

License

MIT

Unpacked Size

6.72 kB

Total Files

5

Last publish

Collaborators

  • jameswilddev