Commit a9d17d07 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Implemented font-weight optimization

parent 2406d894
RESULT := mincss
PRE_TGTS := types
MODULES := color_names util stringify parser lexer parse selector color \
shorthand duplicates main
shorthand duplicates font main
ALL_NAMES := $(PRE_TGTS) $(MODULES)
OCAMLCFLAGS := -g
......@@ -36,7 +36,7 @@ lexer.cmi: lexer.ml
parser.cmx: parser.cmi lexer.cmx
parser.mli: parser.ml
parse.cmx: lexer.cmi parser.cmx
main.cmx: parse.cmx util.cmx color.cmx shorthand.cmx duplicates.cmx
main.cmx: parse.cmx util.cmx color.cmx shorthand.cmx duplicates.cmx font.cmx
util.cmx: OCAMLCFLAGS += -pp cpp
util.cmx color.cmx: color_names.cmx
stringify.cmx parser.cmx color.cmx shorthand.cmx: util.cmi
......
......@@ -131,11 +131,11 @@ let handle_args args =
let input, css = parse_files args.infiles in
let css = css
|> switch args.color Color.compress
(*|> switch args.font Font.compress*)
(* unfold before pruning duplicates so that shorthand components are
* correctly pruned *)
|> switch args.shorthands Shorthand.unfold_stylesheet
|> switch args.font Font.compress
|> switch args.duplicates Duplicates.compress
|> switch args.shorthands Shorthand.compress
in
......
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