Bundle size
Building bundle…
| Uncompressed | gzip Level 6, the | brotli Quality 11, the maximum, as used for precompressed files. On-the-fly compression uses a lower quality and produces larger files. | |
|---|---|---|---|
| - | - | - | |
| - | - | - | |
| - | - | - | |
| - | - | - | |
| - | - | - | |
| - | - | - | |
| - | - | - | |
| - | - | - | |
| - | - | - | |
| Total | - | - | - |
The components and the other themes need theme-default.css.
Built in your browser with esbuild.
Command line#
The morpheus command builds the same files without a browser. It needs Go, and the version after @ selects the release it builds:
-components takes the names on this page, comma-separated, and adds the components they require. The command writes morpheus.min.js, morpheus.min.css and theme-default.css to the -o directory and prints their sizes. -themes takes theme names, such as default,rose, or none. With -json it prints the result as JSON, and with -unminified it also writes morpheus.js and morpheus.css.
In a Go module, add the command as a tool. It then builds the version the module requires, which the neo and datastar packages come from:
morpheus components lists the names with the components each requires, and morpheus bundle -h lists the flags.