Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
109 views
in Technique[技术] by (71.8m points)

javascript - PHP package to minify JS including variables

The topic might seem really simple, but I still struggle to find any solution that will satisfy me and it's been a long time I didn't see anyone talking about it here.

None of the PHP JS minifers I found support ES6. I wanted local variable to change their name to a single character, so the file is just smaller.

I have been using:

  • MatthiasMullie/Minify - this one didn't take care of variables at all
  • Patchwork/JSqueeze - worked only for ES5, "lets" and "consts" variables were untouched.

the others are no longer supported

So my question is, what is the right way to go to minify a JS file with PHP? A single package would be sufficient

question from:https://stackoverflow.com/questions/65890926/php-package-to-minify-js-including-variables

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...