tailor

command module
v0.0.0-...-847cbe6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: GPL-2.0 Imports: 6 Imported by: 0

README

Tailor

This is a work-in-progress CSS minifier and optimizer. The parser and minifier are the most complete and optimization is in progress. It is mostly done but missing implementations for advanced CSS syntax.

Usage

$ go build
$ ./tailor file.css
Current features
  • Parse CSS files
  • Minify CSS files (average 25% file size decrease).
  • Compares property values to their initial value.
  • Syntax checking while and after parsing.
  • Suggests alternatives to deprecated tags.
  • Checks if the HTML tag selector is a valid HTML tag.
  • Warn about redundant use of measurements (eg. 0px).
Benchmarks
Test Time
7,271 lines with checks 0.70s
7,271 lines without checks 0.60s

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL