Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CustomElements = &cobra.Command{ Use: "bundle", GroupID: "bundle", Short: "Run bundler", Long: "Bundles bundle.js and bundle.css files.", Run: func(_ *cobra.Command, _ []string) { fmt.Println("Bundling...") result := api.Build(api.BuildOptions{ EntryPoints: []string{"./main.ts"}, Bundle: true, Outfile: "./ui/static/bundle.js", Write: true, }) if len(result.Errors) > 0 { fmt.Println("Bundler errors: ", result.Errors[0]) os.Exit(1) } fmt.Println("Bundling complete!") }, }
View Source
var Group = &cobra.Group{
ID: "bundle",
Title: "Bundler",
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.