Documentation
¶
Index ¶
- Constants
- Variables
- func NewWebpackPlugin(ps types.PluginCall) types.Plugin
- func PackFromURL(ctx context.Context, filename, urlInfo, tgtFileType, outputDir string, ...) (string, error)
- func ParseFromFile(ctx context.Context, filePath string) (string, error)
- func ReadFromFile(ctx context.Context, filePath string) (string, error)
- type Option
- type WebpackPlugin
Constants ¶
View Source
const ( WebpackPluginName = "webpack" WebpackPluginVersion = "1.0" )
Variables ¶
View Source
var WebpackPluginSpec = types.PluginSpec{ Name: WebpackPluginName, Version: WebpackPluginVersion, Type: types.TypeProcess, InitParameters: []types.ParameterSpec{ { Name: "file_type", Required: false, Default: "webarchive", Description: "Output format: html, webarchive", Options: []string{"html", "webarchive"}, }, { Name: "clutter_free", Required: false, Default: "true", Description: "Enable clutter-free mode", Options: []string{"true", "false"}, }, }, Parameters: []types.ParameterSpec{ { Name: "file_name", Required: true, Description: "Output file name", }, { Name: "url", Required: true, Description: "URL to pack", }, }, }
Functions ¶
func NewWebpackPlugin ¶
func NewWebpackPlugin(ps types.PluginCall) types.Plugin
func PackFromURL ¶
Types ¶
type WebpackPlugin ¶
type WebpackPlugin struct {
// contains filtered or unexported fields
}
func (*WebpackPlugin) Name ¶
func (w *WebpackPlugin) Name() string
func (*WebpackPlugin) Type ¶
func (w *WebpackPlugin) Type() types.PluginType
func (*WebpackPlugin) Version ¶
func (w *WebpackPlugin) Version() string
Click to show internal directories.
Click to hide internal directories.