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

Added Javascript Minifier #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

anishka25
Copy link

This pull request adds Javascript minifier and fixes #42

@vercel
Copy link

vercel bot commented Oct 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devty ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2023 2:04pm

Comment on lines 3 to 12
<h1>JavaScript Minifier</h1>
<textarea
v-model="inputCode"
placeholder="Enter your JavaScript code"
class="inputText"
@input="adjustTextarea"
></textarea>
<button @click="minifyCode">Minify</button>
<h2>Minified Code:</h2>
<p class="minifiedOutput">{{ minifiedCode }}</p>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use built-in components

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use this module for reference

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pratyushtiwary kindly check again

@pratyushtiwary
Copy link
Owner

Please also add some options to configure minification

@anishka25
Copy link
Author

@pratyushtiwary can you please explain this again, I did not get it

@pratyushtiwary
Copy link
Owner

Can you add UI elements so that the user can control how minification is done

Checkout the options supported by uglifyjs here

For example you can add a checkbox for the following:

  • Perserve Annotations,
  • Compress,
  • Support IE,
  • Keep fnames,
  • Mangle names

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

Successfully merging this pull request may close these issues.

Minifying javascript code
2 participants