MCPcopy Create free account
hub / github.com/LyonSyonII/dioxus-tailwindcss / main

Function main

build.rs:2–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1
2fn main() {
3 // Install required packages
4 let toolchain = install_packages();
5
6 // Compile TailwindCSS .css file
7 std::process::Command::new(toolchain)
8 .args([
9 "tailwind",
10 "-i",
11 "src/index.css",
12 "-c",
13 "tailwind.config.js",
14 "-o",
15 "public/tailwind.css",
16 "--minify",
17 ])
18 .env("NODE_ENV", "production")
19 .spawn()
20 .unwrap();
21}
22
23
24/// Installs required packages and selects toolchain to use.

Callers

nothing calls this directly

Calls 1

install_packagesFunction · 0.85

Tested by

no test coverage detected