feat(desktop): themes
This commit is contained in:
parent
d6db6ff198
commit
4a9ff9412e
31 changed files with 3573 additions and 1099 deletions
16
packages/ui/script/generate-preload.ts
Normal file
16
packages/ui/script/generate-preload.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Generates the theme preload script content.
|
||||
* Run this to get the script that should be embedded in index.html.
|
||||
*/
|
||||
|
||||
import { generatePreloadScript, generatePreloadScriptFormatted } from "../src/theme/preload"
|
||||
|
||||
const formatted = process.argv.includes("--formatted")
|
||||
|
||||
if (formatted) {
|
||||
console.log("<script>")
|
||||
console.log(generatePreloadScriptFormatted())
|
||||
console.log("</script>")
|
||||
} else {
|
||||
console.log("<script>" + generatePreloadScript() + "</script>")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue