You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename MinifyMimetype to MinifyBytes or similar, and accept []byte instead of io.Reader, make all other functions that explicitly convert to buffer.NewReader(b) to use this new function. Keep the original MinifyMimetype but mark as deprecated. unlikely due to insignificant performance gain
SVG paths: use S, Q, T, L or remove if (some) control points coincide for curved paths.
CSS: shorten dimensions, for example 200grad -> 180deg. But also 0ms -> 0s and 500ms -> .5s or .005s -> 5ms.
CSS: take care of comma separations in background
CSS: filter declaration blocks for duplicate property definitions, i.e. remove earlier background-position if either background or background-position is set afterwards
CSS: remove % from 0% where possible
CSS: minify aggregate declarations better, such as grid, transition, ...
CSS: find where the initial value is shorter than initial
CSS: remove dimension for zero values if possible
CSS: check if remove duplicate property definitions can be removed (see multiple background with -moz-linear-gradient, -ie-linear-gradient).
Also see tdewolff/parse#44
Renameunlikely due to insignificant performance gainMinifyMimetype
toMinifyBytes
or similar, and accept[]byte
instead ofio.Reader
, make all other functions that explicitly convert tobuffer.NewReader(b)
to use this new function. Keep the originalMinifyMimetype
but mark as deprecated.S
,Q
,T
,L
or remove if (some) control points coincide for curved paths.200grad
->180deg
. But also0ms
->0s
and500ms
->.5s
or.005s
->5ms
.background
background-position
if eitherbackground
orbackground-position
is set afterwards%
from0%
where possiblegrid
,transition
, ...initial
background
with-moz-linear-gradient
,-ie-linear-gradient
).calc
,min
,max
,clamp
,transform
+ related functions in with (https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function),linear-gradient
(ie. the<gradient>
type) (https://developer.mozilla.org/en-US/docs/Web/CSS/gradient), and more.cmd: refactor and separate reusable codecmd: allow options input from command line, config file and environment variablescap
on parsers and helper functions, does this prevent the need forcopy
?The text was updated successfully, but these errors were encountered: