-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keepComments config option doesn't seem to do anything #2206
Comments
@kmcb777 It looks like this option is broken on CLI
Removes comment properly |
@rootwork This should also be fixed, there was an issue in the cli concerning the whole options object passed to mjml2html |
Hmm, I've upgraded:
But when I run the steps to reproduce it's still occurring. |
my bad, this option was actually not handled by the cli |
@rootwork it should be good now in 4.9.2 |
Hi @kmcb777, this seems to have broken something for us. We run mjml in a CI pipeline, and in the last 15 minutes (so since 4.9.2 release) the pipeline has been failing. Here's where we run it, as you can see we don't do anything complex:
This is failing with the following error:
I have locked us to 4.9.1 for now, but thought you might want a heads up. |
Hi @kieranajp thanks for reporting this i'll fix this right now |
Fixed in v4.9.3 |
Describe the bug
I know I'm new to this, so maybe I'm just missing something basic?
I've tried passing
--config.keepComments false
on the command line, and it doesn't seem to have any effect on the output. I thought maybe it only worked if minification was turned on, but that doesn't make any difference. I also tried--config.minifyOptions='{"minifyCSS": true, "keepComments": false}'
but the effect was the same.To Reproduce
Steps to reproduce the behavior:
echo '<mjml><mj-body><!-- comment --></mj-body></mjml>' > index.mjml
mjml -r index.mjml --config.keepComments false -o index.html
grep 'comment' index.html
grep
returns<!-- comment -->
Expected behavior
<!-- comment -->
should not occur in the file;grep
should return nothing.MJML environment (please complete the following information):
The text was updated successfully, but these errors were encountered: