这是indexloc提供的服务,不要输入任何密码
Skip to content

Feiyang1/minifier-repl

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published