-
Notifications
You must be signed in to change notification settings - Fork 481
feat(rendering): minify rendered HTML behind FEATURE_FLAG_MINIFY_HTML #36852
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
cb242c7
feat(rendering): minify rendered HTML behind FEATURE_FLAG_MINIFY_HTML
fmontes b0b84e6
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 345b978
fix(rendering): stop HtmlMinifier from altering rendered content #36851
zJaaal 3615147
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 12ec1ca
test(rendering): lock in HtmlMinifier comment-boundary and commented-…
zJaaal b6e2f15
test(rendering): assert HtmlMinifier integrity as an invariant, over …
zJaaal e4d90b5
test(rendering): scrub the minification corpus and document its handl…
zJaaal 91279ca
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 5973036
ci(rendering): run the Postman Page collection again with HTML minifi…
zJaaal e84afc5
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 5b3def5
feat(rendering): declare FEATURE_FLAG_MINIFY_HTML in dotmarketing-con…
zJaaal 8a60461
test(rendering): cover HTML minification with a Postman collection, n…
zJaaal d0b1450
test(rendering): guard the preserved-region lookup against the weak-b…
zJaaal 0c9f74f
Merge branch 'main' into issue-36851-native-html-minification
zJaaal df6a7fd
fix(test): correct the visible-text comparison in the HTML minificati…
zJaaal 41a6186
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 04e766c
fix(rendering): keep whitespace across a removed comment #36851
zJaaal 7acf365
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 4f1cfb2
Merge branch 'main' into issue-36851-native-html-minification
zJaaal 25a94ac
fix(rendering): keep whitespace beside invisible and replaced inline …
zJaaal 7df4ab7
test(rendering): cover the gaps in the whitespace-adjacency coverage …
zJaaal 90cd646
fix(rendering): keep whitespace beside conditional comments and non-H…
zJaaal 451074b
fix(rendering): tighten the non-HTML guard and drop a copy from its f…
zJaaal 0be584b
Merge branch 'main' into issue-36851-native-html-minification
zJaaal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
559 changes: 559 additions & 0 deletions
559
dotCMS/src/main/java/com/dotcms/rendering/util/HtmlMinifier.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.