Package Details: minify 2.12.4-1

Git Clone URL: https://aur.archlinux.org/minify.git (read-only, click to copy)
Package Base: minify
Description: Minifier CLI for HTML, CSS, JS, JSON, SVG and XML
Upstream URL: https://github.com/tdewolff/minify
Keywords: css html js json minifier minify svg web xml
Licenses: MIT
Submitter: 4679
Maintainer: 4679 (meepzh, tdewolff)
Last Packager: tdewolff
Votes: 11
Popularity: 0.006546
First Submitted: 2016-05-03 08:05 (UTC)
Last Updated: 2022-10-03 22:25 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

shaneallgeier commented on 2022-05-30 16:52 (UTC)

Thanks!

tdewolff commented on 2022-05-30 16:23 (UTC)

Fixed

shaneallgeier commented on 2022-05-30 15:55 (UTC)

FYI: I'm getting an error for 2.11.6-1:

==> Making package: minify 2.11.6-1 (Mon 30 May 2022 10:54:29 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v2.11.6.tar.gz
==> Validating source files with sha256sums...
    v2.11.6.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v2.11.6.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> Starting check()...
ok      github.com/tdewolff/minify/v2   (cached)
ok      github.com/tdewolff/minify/v2/benchmarks        (cached) [no tests to run]
ok      github.com/tdewolff/minify/v2/cmd/minify        (cached)
ok      github.com/tdewolff/minify/v2/css       (cached)
ok      github.com/tdewolff/minify/v2/html      (cached)
--- FAIL: TestJSVarRenaming (0.00s)
    --- FAIL: TestJSVarRenaming/name=function(){var_a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119;a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119} (0.00s)
    js_test.go:833:: 
            name=function(){var a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119;a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119}
            name=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,_a,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb;a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,_a,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb}
            name=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,at,au,av,aw,ax,ay,az,aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX,aY,aZ,a_,a$,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,ba,bb;a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,at,au,av,aw,ax,ay,az,aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX,aY,aZ,a_,a$,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,ba,bb}
FAIL
FAIL    github.com/tdewolff/minify/v2/js        0.039s
ok      github.com/tdewolff/minify/v2/json      (cached)
ok      github.com/tdewolff/minify/v2/minify    (cached)
ok      github.com/tdewolff/minify/v2/svg       (cached)
ok      github.com/tdewolff/minify/v2/xml       (cached)
FAIL
==> ERROR: A failure occurred in check().
    Aborting...

twheel commented on 2022-05-24 14:37 (UTC)

Worked perfectly, thanks!

tdewolff commented on 2022-05-23 21:09 (UTC)

Thanks, should be resolved now.

twheel commented on 2022-05-23 18:39 (UTC)

Getting this error today:

# github.com/tdewolff/minify/v2/minify
minify/minify.go:23:115: cannot use js.Minify (value of type func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error) as type "github.com/tdewolff/minify/v2".Minifier in argument to Default.AddRegexp:
        func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error does not implement "github.com/tdewolff/minify/v2".Minifier (missing Minify method)
ok      github.com/tdewolff/minify/v2   (cached)
FAIL    github.com/tdewolff/minify/v2/benchmarks [build failed]
ok      github.com/tdewolff/minify/v2/cmd/minify        (cached)
ok      github.com/tdewolff/minify/v2/css       (cached)
ok      github.com/tdewolff/minify/v2/html      (cached)
# github.com/tdewolff/minify/v2/minify [github.com/tdewolff/minify/v2/minify.test]
minify/minify.go:23:115: cannot use js.Minify (value of type func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error) as type "github.com/tdewolff/minify/v2".Minifier in argument to Default.AddRegexp:
        func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error does not implement "github.com/tdewolff/minify/v2".Minifier (missing Minify method)
ok      github.com/tdewolff/minify/v2/js        (cached)
ok      github.com/tdewolff/minify/v2/json      (cached)
FAIL    github.com/tdewolff/minify/v2/minify [build failed]
ok      github.com/tdewolff/minify/v2/svg       (cached)
ok      github.com/tdewolff/minify/v2/xml       (cached)
FAIL
==> ERROR: A failure occurred in check().
    Aborting...

tdewolff commented on 2022-04-27 02:55 (UTC)

You're right, when enabling LTO explicitly I was able to reproduce the problem. I've fixed this by disabling CGO as the library doesn't use any CGO. Thanks!

tdewolff commented on 2022-04-27 02:43 (UTC)

Thanks @freswa for the comment, but the package seems to build fine on my end. Additionally, LTO should be a problem when using CGO, and this package does not use CGO so as far as I know there shouldn;t even be an LTO involved as we're not linking with the C toolchain...happy to hear if I'm wrong though..

freswa commented on 2022-04-26 16:44 (UTC)

Could you add an options array with "!lto" please?

options=(!lto)

With the introduction of lto, this pkg doesn't compile anymore.

Thank you

kescherAUR commented on 2022-01-21 00:04 (UTC)

Please remove the "v" prefix from the pkgver.