sindresorhus/strip-css-comments









The issue has been solved
Add `whitespace` option #14
andrey-semenoff posted onGitHub
Hallo! Your plugin works good, but there is one annoying fact - after removing comment block it left empty line, and it looks not very tidily. I propose to add some options to plugin to have a choice (like in gulp-strip-comments):
- options.space ⇒ Boolean false (default) - remove comment blocks entirely true - replace comment blocks with white spaces where needed, in order to preserve the original line + column position of every code element. NOTE: When this option is enabled, option trim is ignored.
- options.trim ⇒ Boolean false (default) - do not trim comments true - remove empty lines that follow removed full-line comments NOTE: This option has no effect when option space is enabled.
or at least add only first one.
Thanks.
Fund this Issue
Rewarded pull request
Add `whitespace` option #21submitted byyaodingyd(558)
Click to copy link
Recent activities