Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wei/minifier

⚡️ Offline-first web app for an HTML, JS, CSS minifier.
https://github.com/wei/minifier

Last synced: 21 days ago
JSON representation

⚡️ Offline-first web app for an HTML, JS, CSS minifier.

Awesome Lists containing this project

README

        

Minifier for JavaScript, CSS and HTML
=======================================
Client-side offline-first JavaScript/CSS/HTML minifier. _Visit: https://minifier.app_

## Description

This tool implements [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). Just load it once and it will available for offline use.

Uses [html-minifier](https://github.com/kangax/html-minifier) which comes with [uglify-js](https://github.com/mishoo/UglifyJS2) and [clean-css](https://github.com/jakubpawlowicz/clean-css). See [default configurations](minify-config.json).

## Installation
```bash
$ export HTTPMINIFIER_VERSION=4.0.0 # Optional, Default to latest

$ npm i && npm run build
```

Start development server:
```bash
$ npm run watch
```

## Questions?

Please [open an issue](https://github.com/wei/minifier/issues) or [email me](mailto:[email protected]) with any issues, feedback, or suggestions.

## Author
[**Wei He**](https://whe.me) [[email protected]_](mailto:[email protected])

## License
[MIT](LICENSE)