Feiyang1 / minifier-repl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minifier-repl

Motivation

See how terser/uglify remove dead code across versions. E.g. what it can or can not remove.

Prior arts

https://github.com/Rich-Harris/terser-playground

https://xem.github.io/terser-online/

Unfortunately they are pretty primitive and don't meet all my requirements.

TODOs:

  • Basic UI that takes input code and output minified code using terser
  • Support options simple - take a JSON blob
  • Support options advanced - let people enable/disable options using checkboxes
  • Support multiple terser versions
  • Support sharing
  • Clean old shared links
  • Various UI improvements
    • code highlight
    • prettify layout
    • default value in version selection dropdown
    • show spinner while initializing states from persistence
  • Clean up TODOs in code
  • Accept relaxed JSON object as configuration
  • Persistence
  • debounce user inputs

About

License:Apache License 2.0


Languages

Language:Svelte 40.7%Language:TypeScript 37.7%Language:JavaScript 19.7%Language:HTML 1.9%