html-minifier hangs with --minify-js
See original GitHub issueCommand never returns and an empty file is created. No problems without --minify-js
Create empty file. (also happens with real html file)
touch test.html
html-minifier -o test.min.html --remove-comments --collapse-whitespace test.html
works.
html-minifier -o test.min.html --remove-comments --collapse-whitespace --minify-js test.html
never returns.
Any help appreciated.
Turns out also --minify-css
is broken for me.
βββ¬ html-minifier@3.0.3
β βββ¬ change-case@3.0.0
β β βββ camel-case@3.0.0
β β βββ constant-case@2.0.0
β β βββ dot-case@2.1.0
β β βββ header-case@1.0.0
β β βββ is-lower-case@1.1.3
β β βββ is-upper-case@1.1.2
β β βββ lower-case@1.1.3
β β βββ lower-case-first@1.0.2
β β βββ no-case@2.3.0
β β βββ param-case@2.1.0
β β βββ pascal-case@2.0.0
β β βββ path-case@2.1.0
β β βββ sentence-case@2.1.0
β β βββ snake-case@2.1.0
β β βββ swap-case@1.1.2
β β βββ title-case@2.1.0
β β βββ upper-case@1.1.3
β β βββ upper-case-first@1.1.2
β βββ¬ clean-css@3.4.19
β β βββ commander@2.8.1
β β βββ¬ source-map@0.4.4
β β βββ amdefine@1.0.0
β βββ¬ commander@2.9.0
β β βββ graceful-readlink@1.0.1
β βββ he@1.1.0
β βββ¬ ncname@1.0.0
β β βββ xml-char-classes@1.0.0
β βββ relateurl@0.2.7
β βββ¬ uglify-js@2.7.3
β βββ async@0.2.10
β βββ source-map@0.5.6
β βββ uglify-to-browserify@1.0.2
β βββ¬ yargs@3.10.0
β βββ camelcase@1.2.1
β βββ¬ cliui@2.1.0
β β βββ¬ center-align@0.1.3
β β β βββ¬ align-text@0.1.4
β β β β βββ¬ kind-of@3.0.4
β β β β β βββ is-buffer@1.1.4
β β β β βββ longest@1.0.1
β β β β βββ repeat-string@1.5.4
β β β βββ lazy-cache@1.0.4
β β βββ right-align@0.1.3
β β βββ wordwrap@0.0.2
β βββ decamelize@1.2.0
β βββ window-size@0.1.0
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Node.js - What is the most robust way of handling an external ...
The 'easy' answer is: Don't use that module. You should never use a module that just freezes up your entire server - that's...
Read more >Freeze on open minifying files .js or .css
Hi @Pit Z , thanks for your feedback! We're aware that a number of VS features slow down when opening files containing very...
Read more >Top 5 html-minifier Code Examples - Snyk
Learn more about how to use html-minifier, based on html-minifier code examples created from the most popular ways it is used in public...
Read more >Online HTML Minifier and Compressor - hung1001
Put HTML Code Here. <html> <body> <style> #minify{border:1px solid #444;height:220px;width: 100%;} </style> <div class='nav'> <ul> <li><aΒ ...
Read more >Should you minify HTML? - Quora
I would suggest webpack , you can also try this html-minifier . ... Usually, there's a lot more lower-hanging fruit in most websites...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It isnβt explained clearly what that
value
should be, and it is unfortunate that html-minifier just hangs instead of errors π¦Okay, thanks, works now. Some warning would have been nice, since this worked without value quite nice in earlier versions.