Documentation ¶
Index ¶
- Constants
- Variables
- func Error(format string, v ...interface{})
- func GetAssetFileHash(body *string) string
- func MinifyJavascript(body string) (string, error)
- func MinifyStylesheet(body string) (string, error)
- func SetAfterBuildCallback(assetType assetsType, cb preAfterBuildCallback)
- func SetAssetFileExtension(extension string, assetType assetsType)
- func SetMinifyCallback(extension string, cb minifyFileCallback)
- func SetPreBuildCallback(assetType assetsType, cb preAfterBuildCallback)
- func SetPreLoadCallback(assetType assetsType, cb preLoadCallback)
- func Warning(format string, v ...interface{})
- type Asset
Constants ¶
View Source
const ( //AssetJavascript type AssetJavascript assetsType = iota //AssetStylesheet type AssetStylesheet )
Variables ¶
View Source
var Config assetPipelineConfig
Config - assets pipeline configuration
Functions ¶
func GetAssetFileHash ¶
GetAssetFileHash - get hash(fingerprint) file by body
func MinifyJavascript ¶
MinifyJavascript - Minify js file
func MinifyStylesheet ¶
MinifyStylesheet - Minify css file
func SetAfterBuildCallback ¶
func SetAfterBuildCallback(assetType assetsType, cb preAfterBuildCallback)
SetAfterBuildCallback - set callback on after build assets
func SetAssetFileExtension ¶
func SetAssetFileExtension(extension string, assetType assetsType)
SetAssetFileExtension - add new Asset type
func SetMinifyCallback ¶
func SetMinifyCallback(extension string, cb minifyFileCallback)
SetMinifyCallback -
func SetPreBuildCallback ¶
func SetPreBuildCallback(assetType assetsType, cb preAfterBuildCallback)
SetPreBuildCallback - set callback on PreBuild assets
func SetPreLoadCallback ¶
func SetPreLoadCallback(assetType assetsType, cb preLoadCallback)
SetPreLoadCallback - set callback on preload assets
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.