Minify html should minify css
See original GitHub issueProblem
CSS is not minified with minify option enabled.
Solution
Change html-minifier
option to minify CSS by default
Alternatives
Add an option to toggle CSS minification.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Why do many sites minify CSS and JavaScript but not HTML?
This means they can be minified just once whenever they are updated. On the other hand, HTML tends to be dynamically generated, which...
Read more >What is Minification | Why minify JS, HTML, CSS files - Imperva
To minify JS, CSS and HTML files, comments and extra spaces need to be removed, as well as crunch variable names so as...
Read more >How to Minify Your Website's CSS, HTML & Javascript
Go to minifycode.com and click the CSS minifier tab. Then paste the CSS code into the input box and click the Minify CSS...
Read more >Minify Resources (HTML, CSS, and JavaScript)
To minify HTML, try HTMLMinifier ; To minify CSS, try CSSNano and csso. ; To minify JavaScript, try UglifyJS. The Closure Compiler is...
Read more >Minify CSS – CSS Minifying and Compression Explained
Minification, generally, is a great approach for optimizing websites. Minifying CSS files increases page load times and requires fewer resources ...
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 Free
Top 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
You can now pass any option to html-minifier through the cli/options arguments 👍 So I’m closing this.
I think we should just expose an object to pass extra options to minifier instead of mapping them.
cc @kmcb777