mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 11:36:35 +08:00
优化“页面优化”功能相关代码
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user