Contribute
Since the minifier is modular, it's easy to add new modules:
-
Create a file inside
src/_modules/with a module that performs one minification task. For a template, checksrc/_modules/example.ts. -
Add the module to one or more presets in
src/presets/. Usesafe,ampSafe, and/ormaxbased on risk. -
Add unit tests in
test/modules/(TypeScript). -
Document the module in
docs/docs/050-modules.md. -
Run
npm run lintandnpm run build, then open a pull request.
Other types of contribution (bug fixes, documentation improvements, etc.) are also welcome. Would like to contribute, but don't have any ideas what to do? Check out our issues.