-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Preserve SSI Comments #6920
Comments
This would have to be fixed in htmlnano, see posthtml/htmlnano#73 |
Done. Now, it needs to be integrated into parcel :) |
This should already work with a |
A new version of htmlnano has been released (1.1.1), but parcel still uses 1.0.1, doesn't it? |
|
My |
It works correctly for me with <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<!--# include file="footer.html" -->
</body>
</html> {
"dependencies": {
"parcel": "2.0.0-nightly.843"
}
} and module.exports = {
removeComments: (comments) => {
return !comments.startsWith("<!--#");
},
};
` |
Well... It works 😄 I guess, I just named the file wrong or something... Thank you very much :) |
It would be nice if we could keep SSI comments (see https://nginx.org/en/docs/http/ngx_http_ssi_module.html) during the build. I know, that there's
"removeComments": false
in the.htmlnanorc
available, but this preserves every comment.The text was updated successfully, but these errors were encountered: