Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCompiler ¶
WithCompiler connects a Compiler to Debugger.
func WithDefaultCompiler ¶
WithDefaultCompiler connects a default Compiler to Debugger.
Types ¶
type Debugger ¶
type Debugger struct {
// contains filtered or unexported fields
}
Debugger watches sources and re-compile them to serve through the asset object.
func NewDebugger ¶
NewDebugger watches entry directories and files and copies them to a temporary directory. If the Compiler is provided by options, the files will also be refined by the compiler while being copied. If any of the watched files are changed, the changes are reflected within 1-2 seconds. The returned Debugger is meant to replace a zassets.Store object for live-editing.
Click to show internal directories.
Click to hide internal directories.