This project recreates the steps Hive uses in his release process to minify / uglify any Hive Plugin for all the supported players
Use the npm package manager to install the Hive Minify Tool
npm iTo use Hive Minify Tool three env variables need to be exported:
- PLUGIN_FILENAME - Path to the unminified Hive Plugin
- EXCLUDES_FILE - Path to the excludes file (list of words that will not be mangled)
- MINIFIED_FILENAME - Path where to create the minified Hive Plugin
PLUGIN_FILENAME=facebook.java.hivejs.hive.js EXCLUDES_FILE=./full-excludes.json MINIFIED_FILENAME=facebook.java.hivejs.hive.min.js npm run minify