Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Convert long repeated strings to .repeat() when minifying #1015

Open
SiddharthShyniben opened this issue Jul 5, 2021 · 0 comments

Comments

@SiddharthShyniben
Copy link

Is your feature request related to a problem? Please describe.
Whenever I minify long strings using this minifier, The strings are left untouched. It would be nice if the long strings (Example '░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░') could be changed to '░'.repeat(35), which saves 21 characters

Describe the solution you'd like
Replace long enough strings with .repeat() when minifying

Describe alternatives you've considered
We could do this in the source code itself, but that defeats the purpose of a minifer

Additional context
NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant