Skip to content
Lightweight command line tool that minifies css files.
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/kotlin/craicoverflow89/cssminifier
build.gradle
gradle.properties
license.md
readme.md
settings.gradle
version

readme.md

CSS Minifier

Lightweight command line tool that utilises the great work of cssminifier.com, to minify css files.

Installation

Add a cssmin script to your PATH, replacing x.y.z with version.

# *nix shell script
java -jar /path/to/cssmin-x.y.z.jar "$@"

# windows batch file
@java -jar /path/to/cssmin-x.y.z.jar %*

Usage

You can minify single files or entire directories and optionally specifiy an alternative output directory.

$ cssmin src/my_file.css
# Creates my_file.min.css in the src directory

$ cssmin src/my_file.css out
# Creates my_file.min.css in the out directory

$ cssmin src out
# Minifies all files in src and puts results in out

$ cssmin src out -r
# Same as before including subdirectories

See Also

You can’t perform that action at this time.