Improve minification
See original GitHub issueThe minification of template strings with terser currently is suboptimal, the problem being strings with repeated spaces and line breaks ending up in the minified code (excerpt):
`\n<style>\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\n\n:host {\n […]`
This is most probably me holding terser wrong. Essentially I’m looking for something like babel-plugin-minify-template-strings, but for terser. Help wanted.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
How to Improve Performance by Minify & Compress Files
In simple words, minification is the method of removing all the unnecessary things including whitespaces and comments from HTML, CSS, and ...
Read more >How to Minify CSS and Speed Up Your Website - HubSpot Blog
By stripping unnecessary data from the CSS code, minification helps the browser download and process these files faster, increasing page ...
Read more >Does minification improve performance? - Stack Overflow
Minification can improve performance, depending on your JavaScript engine. For example, Chrome's V8 optimizing compiler automatically ...
Read more >How to Minify CSS and JavaScript in WordPress - WP Rocket
CSS and JS minification improve your WordPress site's performance on four different levels: Improve Loading Time. JS and CSS minification increase page ...
Read more >How to Minify JavaScript — Recommended Tools and Methods
To regain space and improve your page load speed, you must minify the JavaScript code. The minified version of JavaScript code can reduce...
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
Eagerly awaiting CSS modules that will make this so much better.
Yes, it’s a best practice.