تصغير JavaScript
تصغير JavaScript: جهّز النص البرمجي وراجع الناتج قبل دمجه في مشروعك.
تصغير JavaScript: المدخلات والنتائج والحدود
تصغير JavaScript: جهّز النص البرمجي وراجع الناتج قبل دمجه في مشروعك.
تفاصيل الأمثلة والأسئلة أدناه باللغة الإنجليزية حالياً. راجع تنسيق الملف والنتيجة قبل الاستخدام؛ لا تتغير ملفاتك الأصلية.
خطوات الاستخدام
- أدخل النص أو استخدم المثال الموضّح في الأداة.
- شغّل الأداة بعد التحقق من المدخلات.
- راجع المعاينة أو النص الناتج ثم نزّل ملفاً جديداً.
حالة استخدام توضيحية
A short JavaScript function passed through a local minifier.
Sample input
function add(a,b) { return a + b; }طريقة فحص الناتج
Keep readable source for maintenance and test the minified script in its actual application. Removing or renaming code can expose assumptions about global variables or external consumers.
حدود الأداة
جهّز النص البرمجي وراجع الناتج قبل دمجه في مشروعك.
حل المشكلات
Check source syntax and distinguish literal characters from their escaped representation. Run the example first, then compare with your failing input to isolate the invalid part.
الأسئلة الشائعة
Does minification prove the program works?
No. A parser can accept code whose behaviour is still wrong. Run the application tests and retain the original source.
What input does JavaScript minifier need?
Use the sample text shown below, then replace it with your own input. Review the result for the destination where it will be used.
Which options does JavaScript minifier provide?
There are no extra settings in this version. Select or paste the appropriate input and review the produced result.
المعالجة على جهازك؛ نسّق النص النهائي وراجع الناتج قبل المشاركة.
JavaScript enables the interactive workspace.