优化“页面优化”功能相关代码

This commit is contained in:
刘祥超
2024-03-14 14:24:22 +08:00
parent 823e519d58
commit b314f7e96c
4 changed files with 11 additions and 129 deletions

View File

@@ -2,10 +2,6 @@
package serverconfigs
import (
"github.com/tdewolff/minify/v2/html"
)
type HTTPHTMLOptimizationConfig struct {
HTTPBaseOptimizationConfig
@@ -36,15 +32,3 @@ func (this *HTTPHTMLOptimizationConfig) Init() error {
}
return nil
}
func (this *HTTPHTMLOptimizationConfig) AsMinifier() *html.Minifier {
return &html.Minifier{
KeepComments: this.KeepComments,
KeepConditionalComments: this.KeepConditionalComments,
KeepDefaultAttrVals: this.KeepDefaultAttrVals,
KeepDocumentTags: this.KeepDocumentTags,
KeepEndTags: this.KeepEndTags,
KeepQuotes: this.KeepQuotes,
KeepWhitespace: this.KeepWhitespace,
}
}