-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
HTML minification #6706
HTML minification #6706
Conversation
🦋 Changeset detectedLatest commit: 756b68e The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
# Conflicts: # pnpm-lock.yaml
@matthewp cc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, @wulinsheng123! One little paragraph raised a couple of questions below. 😅
I'm going to take this opportunity to converge on some standardizing of how we define these Booleans, so thanks for being my guinea pig and putting a little extra work in here! I've offered a couple of suggestions for wording that match the structure of other terms on this page, and want to double check what the default value actually is (true or false) in order to make the example as helpful and realistic as possible.
I leave it in y'all's hands to come up with something reasonable based on my feedback! 🙌
@wulinsheng123 can you add a test for dev? I know you said it wasn't working there. Then @bluwy or myself will test out what the problem is. |
Please tell me a clue on how to test for dev. because I have tried a lot, there is no better idea. But I'm definitely sure I have passed that property to the compiler. |
@wulinsheng123 The
|
I submitted the stage 3 RFC here: withastro/roadmap#581 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should add a test for SSR too, what do you think?
Co-authored-by: Emanuele Stoppa <[email protected]>
Co-authored-by: Emanuele Stoppa <[email protected]>
Co-authored-by: Emanuele Stoppa <[email protected]>
Co-authored-by: Emanuele Stoppa <[email protected]>
Co-authored-by: Emanuele Stoppa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks great! Have one small nit below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking to prevent accidental merge before release day.
Co-authored-by: Sarah Rainsberger <[email protected]>
Changes
compressHTML
flag to the config, defaulting to false.compact
flag.Testing
Docs