0.0.15 • Published 2 years ago

@shanzhai/minify-javascript-step v0.0.15

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

@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:

NameVersion
uglify-js3.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

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago