Minify用Go编写的一个HTML资源缩小器包
Minify用Go编写的一个HTML资源缩小器包。 它提供了HTML5,CSS3,JS,JSON,SVG和XML缩小器以及一个实现任何其他缩小器的接口。
v2.3.7
Assets
2
Add Go modules support by using the github.com/tdewolff/minify/v2
import path.
v2.3.6
Assets
9
- minify_2.3.6_checksums.txt 593 Bytes
- minify_2.3.6_darwin_amd64.tar.gz 1.9 MB
- minify_2.3.6_freebsd_amd64.tar.gz 1.79 MB
- minify_2.3.6_linux_amd64.tar.gz 1.78 MB
- minify_2.3.6_netbsd_amd64.tar.gz 1.79 MB
- minify_2.3.6_openbsd_amd64.tar.gz 1.79 MB
- minify_2.3.6_windows_amd64.zip 1.76 MB
- Source code (zip)
- Source code (tar.gz)
Important: default mimetype for JavaScript is now application/javascript
(it used to be text/javascript
).
- HTML bugfix: keep empty
value
attribute on<input type="radio">
, because the default is not an empty string - HTML bugfix: prevent IE conditional comments from panicking in some instances
- CSS: handle
local()
for URLs - CSS: support
rgb()
andhsl()
with spaces instead of commas - CSS: improve minification for
font
,background
,background-position
,background-repeat
,background-size
,outline
andborder
declarations - CSS: reintroduce support for IE star-declaration hack
- CSS bugfix:
margin
andpadding
now check if values that are functions (such ascalc()
) are equal and thus eligible for collapsing - CSS bugfix: parse bad declarations better
- CSS bugfix: add space for attribute selector case insensitivity between the value and
i
as ininput[type="radio" i]
- CSS bugfix: do not collapse
outline
to0
but tonone
- CSS bugfix: opacity for
rgba()
andhsla()
in CSS2 cannot be rewritten as#rrggbbaa
- SVG bugfix: only use the first pair of coordinates for
M
to move back to when encounteringZ
v2.3.5
Bugfixes and bash completion
tdewolff released this
Assets
- 593 Bytes minify_2.3.5_checksums.txt
- 1.89 MB minify_2.3.5_darwin_amd64.tar.gz
- 1.77 MB minify_2.3.5_freebsd_amd64.tar.gz
- 1.77 MB minify_2.3.5_linux_amd64.tar.gz
- 1.77 MB minify_2.3.5_netbsd_amd64.tar.gz
- 1.77 MB minify_2.3.5_openbsd_amd64.tar.gz
- 1.74 MB minify_2.3.5_windows_amd64.zip
- Source code (zip)
- Source code (tar.gz)
- CLI: Add bash completion for the
minify
command - CLI: improved error messages
- CLI bugfix: don't open all files at once when concatenating, which usually panics when >10000 files are open
- CLI bugfix: don't minify modified files twice when watching them
- Bugfix: prevent panic on long decimals with negative exponent, where rewriting would previously cause longer numbers
- HTML: accept alternative syntax for MS conditional comments
- HTML bugfix:
draggable
is not a boolean - HTML bugfix: do not assume mediatype in
<meta content="x">
- CSS: add option for CSS2 numbers without exponents
- CSS: trim space in
url()
- CSS: minify
box-shadow
,background
and@import
better - CSS bugfix: prevent panic for functions with no arguments or end parenthesis
- CSS bugfix: keep dimensions for zeros in
flex
property - CSS bugfix: keep other values for
outline
andborder
when width is zero - CSS bugfix: font
normal
now handled - CSS bugfix: add quotes to unquotes
url()
when we can remove theurl
function - CSS bugfix: only omit number dimensions for and
- JS bugfix: ASI behaviour for template literals
- JS bugfix: replace comment as space when comment is removed
- JS bugfix: divide by regular expression
- SVG: don't remove empty groups anymore, as CSS or JS might rely on them
- SVG bugfix: prevent panic on invalid pathdata for arcs
热门度与活跃度
0.0
0.3
Watchers:54 |
Star:1675 |
Fork:104 |
创建时间: 2014-05-21 17:03:48 |
最后Commits: 12天前 |
许可协议:MIT |
2d0bbc9
Verified
I'm suspecting that
go mod
gets confused from a previously revertedv2.3.7
release, so just in case this is a new release that will hopefully fix: