mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-19 17:10:24 +08:00
优化“页面优化”功能相关代码
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
package serverconfigs
|
||||
|
||||
import "github.com/tdewolff/minify/v2/js"
|
||||
|
||||
type HTTPJavascriptOptimizationConfig struct {
|
||||
HTTPBaseOptimizationConfig
|
||||
|
||||
@@ -25,11 +23,3 @@ func (this *HTTPJavascriptOptimizationConfig) Init() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *HTTPJavascriptOptimizationConfig) AsMinifier() *js.Minifier {
|
||||
return &js.Minifier{
|
||||
Precision: this.Precision,
|
||||
KeepVarNames: this.KeepVarNames,
|
||||
Version: this.Version,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user