@inf3cti0n/code-minifier.browser v1.1.3
Code Minifier - Browser
Description
Code Minifier - Browser is an NPM package compiled with Browserify that runs in the browser to minify code. This currently supports JavaScript and HTML. This can be useful when combined with an ACE editor.
How to include:
You can include the JavaScript file by including it from your node_modules
folder.
<script src="node_modules/@inf3cti0n/code-minifier.browser/dist/minifier.js"></script>
How to use:
Once you include the JavaScript file, an object named minifier
will be created and ready to use.
You can minify code by using minifier.minify(code)
where code
is your code to be minified. There will be no result if the code is unsupported.
This project runs on html-minifier-terser, terser, lang-detector, and clean-css. The minifiers can be customized with the second parameter in minify
of options
.
Check the corresponding packages for the minification options.
This package is a test and has no warranty, as this is our first package. This may not work the entire time of usage. Please use at your own risk.
Updates:
1.0.0:
Initial Release:
Initial release. Documentation coming soon with in hope of more support with other languages.
1.0.7
Bug Fixes
Updated file README.md.
1.1.0
Support Addition
Added support for CSS.
Bug Fixes
Updated file README.md.