Closed mataha closed 7 months ago
Sorry, I'm not following why this is needed?
No information provided, closing.
Apologies - I didn't see your previous message.
Consider the following example:
The result:
<!doctype html>
<html>
<head>
<style>
html{box-sizing:border-box;text-size-adjust:none}
</style>
</head>
<body>
Hello World!
</body>
</html>
Notice the newlines. I would expect the following instead:
<!doctype html>
<html>
<head>
<style>html{box-sizing:border-box;text-size-adjust:none}</style>
</head>
<body>
Hello World!
</body>
</html>
If you're wondering why is this important for me - when on 512 Kbps, every shaven byte matters.
This has been resolved in v2.0
That almost did it - see #91.
This commit introduces a config option that, when enabled, collapses leading and trailing newlines inserted while combining assets within a single file.
This is necessary because, by the time this plugin runs (i.e. during the
generateBundle
stage), it is too late to perform any code minification.