Commit 675f6414 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Updated README some more, added 64-bit pre-compiled binary

parent e981b090
RESULT := mincss RESULT := mincss
DIST := dist/mincss
PRE_TGTS := types PRE_TGTS := types
MODULES := color_names util stringify parser lexer parse selector simple \ MODULES := color_names util stringify parser lexer parse selector simple \
shorthand duplicates main shorthand duplicates main
...@@ -11,11 +12,17 @@ OCAMLLDLIBS := str.cmxa ...@@ -11,11 +12,17 @@ OCAMLLDLIBS := str.cmxa
OCAMLLEX := ocamllex OCAMLLEX := ocamllex
OCAMLYACC := menhir --infer --explain --dump OCAMLYACC := menhir --infer --explain --dump
.PHONY: all clean .PHONY: all dist clean
.PRECIOUS: $(addprefix .cmi,$(ALL_NAMES)) .PRECIOUS: $(addprefix .cmi,$(ALL_NAMES))
all: $(RESULT) all: $(RESULT)
dist: $(DIST)
$(DIST): $(RESULT)
@mkdir -p $(@D)
cp $< $@
%.ml: %.mll %.ml: %.mll
$(OCAMLLEX) -o $@ $< $(OCAMLLEX) -o $@ $<
......
...@@ -7,8 +7,16 @@ with the official CSS specification and a traversal utility function for use in ...@@ -7,8 +7,16 @@ with the official CSS specification and a traversal utility function for use in
transformation passes. transformation passes.
Optimizations Installation
============= ============
For now, there is no easy installation option for mincss (yet). A pre-built
64-bit ELF binary is available for download [here](dist/mincss). You can also
build the binary from source (see *Building mincss* below).
Features
========
Whitespace compression Whitespace compression
---------------------- ----------------------
...@@ -38,6 +46,11 @@ counterparts, after which the last value is used for shorthand generation: ...@@ -38,6 +46,11 @@ counterparts, after which the last value is used for shorthand generation:
font: normal 12px/15px sans-serif; | font: bold 12px/15px sans-serif; font: normal 12px/15px sans-serif; | font: bold 12px/15px sans-serif;
font-weight: bold; | font-weight: bold; |
Sorting declarations
--------------------
The `--sort` command-line option sorts declarations alphabetically. This option
is disabled by default since it does not affect file size.
Command-line interface Command-line interface
====================== ======================
......
File added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment