-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 #7333
Comments
|
Can you add a reproduction please? |
@matthewp Code HTML page will produce when the page is not set to prerender, doctype and HTML are still not minify:
I also notice the <script> tags are in new lines too.
Prefer to test all the project in astro.new if you can. |
Hopefully, a contributor can fix it. |
Looks like we aren't passing in the astro/packages/astro/src/core/app/index.ts Line 255 in 0daaa9e
astro/packages/astro/src/core/app/index.ts Line 263 in 0daaa9e
|
* fix(#7333): pass compressHTML to manifest * chore: add compressHTML to astro:ssr-manifest test
* fix(#7333): pass compressHTML to manifest * chore: add compressHTML to astro:ssr-manifest test
What version of
astro
are you using?2.6.1
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
npm
What operating system are you using?
macOS
What browser are you using?
Firefox
Describe the Bug
In 2.6.0 update which has been patched with
#7242
I found the
<doctype>
still contains newline while other part are minified, did the patch solved the issue?Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-wjgoff?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: