What plug-ins are used for online JS/CSS compression?

problem description

at present, I want to be a website with functions similar to webmaster tools. Online compression JS has not found a suitable plug-in. Uglify-js is directly referenced in the vue project to report an error

.

the platform version of the problem and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
import uglify from "uglify-js"
referencing directly in vue will report an error
Cannot find module "."

what result do you expect? What is the error message actually seen?

I want to know what plug-ins are used to implement the online compression function. Please recommend them. Thank you

Aug.07,2021
Menu