Kipunguza JavaScript
Ondoa maoni na nafasi tupu kutoka JavaScript.
Hufanya kazi kwenye kivinjari chako. Faili zako hazitoki kamwe kwenye kifaa. Tazama jinsi ya kuthibitisha
…
Jinsi ya kufanya
- 1Jaza visanduku
Andika namba zako au chagua chaguo unazohitaji.
- 2Angalia matokeo
Jibu husasishwa mara moja unapobadilisha thamani.
- 3Litumie
Nakili matokeo au yaandike. Hakuna kinachotumwa popote.
About this tool
Paste your JavaScript and the tool removes comments and unnecessary whitespace while keeping strings, template text and regular expressions safe. This is a light minifier: it does not rename variables. For the smallest possible file use a build tool, but this is quick for small scripts and snippets.
When to use it
Remove comments and spaces from JavaScript.
Tips
Use a full build tool for large projects.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
What it does not do
This simple minifier removes comments and extra whitespace. It does not rename variables or remove dead code, so the saving is smaller than with a full build tool. Always test the minified script.
Vidokezo vya matokeo bora
Angalia kila kisanduku kabla ya kuamini matokeo, kwa sababu nambari moja isiyo sahihi hubadilisha jibu zima. Tumia nambari kamili kutoka kwenye hati ya mshahara, ankara, cheti au mkataba na uandike tarehe uliyohesabu. Viwango, vizingiti na sheria hubadilika mara kwa mara, kwa hivyo kwa kodi, ada na masuala ya kisheria chukulia matokeo kuwa makadirio na uyathibitishe na chanzo rasmi kilichotajwa kwenye ukurasa huu. Unaweza kujaribu hali nyingi unavyotaka; hakuna kinachohifadhiwa wala kutumwa na kupakia upya ukurasa husafisha visanduku.
Kwa ufupi
- Kategoria: Nyaraka
- Hufanya kazi kwenye kivinjari, bila usajili, bila kupakia.
- Taarifa unazoingiza hubaki kwenye kifaa chako.
- Inapatikana kwa lugha nyingi.
- Maudhui yalikaguliwa mwisho:
Maswali yanayoulizwa mara kwa mara
Does it rename my variables?
No. It only removes comments and extra whitespace, so the code stays readable to debug.
Is my code uploaded?
No. Everything runs in your browser.
Does it rename variables?
No. It only removes comments and spaces.
Is it safe?
It keeps the logic unchanged.
Is the minified file safe to use?
Test it, since removing line breaks can matter in rare cases without semicolons.