Compress JS and LESS files on Windows

Опубликовано: 16 Февраль 2026
на канале: Goran Vasić
2,072
6

Simple tutorial on how to compress JavaScript or LESS files on Windows. Batch script was created for demo purposes.

JavaScript files are compressed with "YUI Compressor". This is a simple .jar file which can be called from Command Prompt console.

LESS files are converted to CSS and compressed with "lessc", LESS compiler installed through Node.js. It is also available through Command Prompt console.