-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Add support for minifying index.html #5753
Conversation
Travis spurious error. Please trigger a rebuild. |
@ishitatsuyuki you can trigger a rebuilt by |
Two weeks elapsed. Please take a look! |
Heya @ishitatsuyuki, old system are used with the CLI, and we really don't want to introduce breaking changes for such little benefit. I'm sorry, but I'll have to close this PR. |
@filipesilva I'm aware of such concerns. Actually, I'm willing to disable the removal of trailing slash (it can be specified as It's a tradeoff of compatibility with performance, though. If you reopened this, I will change it to allow XHTML ASAP. |
I don't quite get what the problem is that you're trying to solve though. Is there a bug currently that you're trying to fix? |
Ah I see now! I'll reopen, and thank you for taking such an old issue on. I'm slightly worried that it might affect some users that are currently depending on the current As for this PR as is, can you change it to not remove |
Looks like there's some presumably spurious build failures. Please trigger a rebuild and see if there is a real problem or not. |
Some performance data if anyone is curious. File size differences for a new project:
For a medium-size project with some additional index content:
|
@@ -37,7 +37,13 @@ export function getBrowserConfig(wco: WebpackConfigOptions) { | |||
filename: path.resolve(buildOptions.outputPath, appConfig.index), | |||
chunksSortMode: packageChunkSort(appConfig), | |||
excludeChunks: lazyChunks, | |||
xhtml: true | |||
xhtml: true, | |||
cache: false, |
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.
Why is cache set to false?
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.
Looks like a leftover from the inlining implementation. Will remove it.
Restarted builds. |
might want to adjust the commit message to indicate this just minifies |
Review? |
It looks like version 3.0 of the |
Semver will still protect us, and I believe someone will create a plugin to bring the functionality. If nobody do, maybe I will do that. :( so slow review, it's going to enter the refactor cycle |
Sorry for the delay in getting it merged, I'm doing it now. |
Is there any way we can still get the trailing slash? Or to disable the minification of just the index.html? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This was built with compatibility in mind.