-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
running minify within a static html page #5782
Comments
You will have to bundle it in a single javascript file |
Any chance that there will be a version that works in a browser? Or are there any alternatives that work in a browser? |
Why do you want to minify javascript in the browser? |
I need to compress code snippets effectively for the sake of programming language playground data effectiveness and code snippets sharing in serverless environments. |
From https://lisperator.net/uglifyjs/ : UglifyJS2 provides a quick way to build itself for the browser:
Now you have it in
If you need source maps you'll also have to include the Mozilla source-map module. |
Closing as answered. |
Okay, I'm not using npm, nor running node webserver, but serving static HTML files from an object store.
So, how can I embed uglify-js into that page?
The text was updated successfully, but these errors were encountered: