forked from external-repos/squoosh
32f2b4e573c71cb0cdd3d7c249d42989d42c3dff
Previously, Compress had a static import only used by TypeScript, as the module was loaded dynamically. The type can be replaced with `import().default`. TypeScript 2.9 introduced the ability to use `import()` within type statements. https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#import-types
Squoosh!
Squoosh is an image compression web app that allows you to dive into the advanced options provided by various image compressors.
Privacy
Google Analytics is used to record the following:
- Basic visit data.
- Before and after image size once an image is downloaded. These values are rounded to the nearest kilobyte.
Image compression is handled locally; no additional data is sent to the server.
Building locally
Clone the repo, and:
npm install
npm run build
You'll get an error on first build because of a stupid bug we haven't fixed yet.
You can run the development server with:
npm start
Description
Languages
TypeScript
62.5%
JavaScript
10%
C++
9.5%
CSS
8.9%
Makefile
3.9%
Other
5.2%