Contribute
Since the minifier is modular, it's very easy to add new modules:
Create a ES6-file inside
lib/modules/
with a function that does some minification. For example you can checklib/modules/example.mjs
.Add the module's name into one of those presets. You can choose either
ampSafe
,max
, orsafe
.Create a JS-file inside
test/modules/
with some unit-tests.Describe your module in the section "Modules".
Send me a pull request.
Other types of contribution (bug fixes, documentation improves, etc) are also welcome! Would like to contribute, but don't have any ideas what to do? Check out our issues.