Discover Packages
github.com/dustedcodes/pkg
http
mware
assets
package
Version:
v0.1.0-beta-007
Opens a new window with list of versions in this module.
Published: Nov 12, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ServeBundles is a middleware which automatically discovers, bundles and minifies static web assets such as CSS and JavaScript files and handles all web requests to those assets.
Asset holds information about a static asset.
type Bundle struct {
FileName string
Contents []byte
}
Bundle holds information of a minified asset bundle.
Bundles holds information about all static web assets.
GetBundles returns an object of all bundled and minified assets.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.