页面优化增加例外URL和限制URL

This commit is contained in:
GoEdgeLab
2023-11-30 15:49:19 +08:00
parent 616b3ee5d8
commit 46bf106316
5 changed files with 87 additions and 5 deletions

View File

@@ -2,9 +2,13 @@
package serverconfigs
import "github.com/tdewolff/minify/v2/html"
import (
"github.com/tdewolff/minify/v2/html"
)
type HTTPHTMLOptimizationConfig struct {
HTTPBaseOptimizationConfig
IsOn bool `yaml:"isOn" json:"isOn"`
KeepComments bool `yaml:"keepComments" json:"keepComments"`
@@ -26,6 +30,10 @@ func NewHTTPHTMLOptimizationConfig() *HTTPHTMLOptimizationConfig {
}
func (this *HTTPHTMLOptimizationConfig) Init() error {
err := this.HTTPBaseOptimizationConfig.Init()
if err != nil {
return err
}
return nil
}