mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-13 16:22:33 +00:00
chore: add tailwind build tooling
This commit is contained in:
1 parent
1f191e2b90
commit
23a8eacad4
9 files changed
+1724
-6
No files matched your search
@@ -73,9 +73,24 @@ To run **bitvid** locally:
|
||||
```
|
||||
|
||||
3. Open the site in your browser:
|
||||
```
|
||||
http://localhost:8000
|
||||
```
|
||||
```
|
||||
http://localhost:8000
|
||||
```
|
||||
|
||||
### CSS build pipeline
|
||||
|
||||
Tailwind utilities are generated from `css/tailwind.source.css` using the build
|
||||
script below. Run this whenever you add or remove classes in HTML or JavaScript
|
||||
so the purged output stays in sync:
|
||||
|
||||
```bash
|
||||
npm install # first run only
|
||||
npm run build:css
|
||||
```
|
||||
|
||||
The command compiles Tailwind with `tailwind.config.cjs` and emits the purged,
|
||||
minified stylesheet at `css/tailwind.generated.css`. Commit the regenerated
|
||||
file alongside any template changes so deployments pick up the latest styles.
|
||||
|
||||
### Configuration
|
||||
|
||||
|
||||
Reference in new issue
Block a user