Fix tailwind purging and improve HMR

This commit is contained in:
Louis Knight-Webb
2025-06-21 18:23:34 +01:00
parent 0f4765dcf8
commit fac265d40a
2 changed files with 16 additions and 2 deletions

View File

@@ -7,6 +7,20 @@ module.exports = {
'./app/**/*.{ts,tsx}', './app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}', './src/**/*.{ts,tsx}',
], ],
safelist: [
'xl:hidden',
'xl:relative',
'xl:inset-auto',
'xl:z-auto',
'xl:h-full',
'xl:w-[800px]',
'xl:flex',
'xl:flex-1',
'xl:min-w-0',
'xl:overflow-y-auto',
'xl:opacity-100',
'xl:pointer-events-auto',
],
prefix: "", prefix: "",
theme: { theme: {
container: { container: {

View File

@@ -2,12 +2,12 @@
"name": "vibe-kanban", "name": "vibe-kanban",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "concurrently \"cargo watch -x 'run --manifest-path backend/Cargo.toml'\" \"npm run frontend:dev\"", "dev": "concurrently \"cargo watch -w backend -x 'run --manifest-path backend/Cargo.toml'\" \"npm run frontend:dev\"",
"build": "npm run frontend:build && cargo build --release --manifest-path backend/Cargo.toml", "build": "npm run frontend:build && cargo build --release --manifest-path backend/Cargo.toml",
"build:single": "npm run frontend:build && cargo build --release --manifest-path backend/Cargo.toml", "build:single": "npm run frontend:build && cargo build --release --manifest-path backend/Cargo.toml",
"frontend:dev": "cd frontend && npm run dev", "frontend:dev": "cd frontend && npm run dev",
"frontend:build": "cd frontend && npm run build", "frontend:build": "cd frontend && npm run build",
"backend:dev": "cargo watch -x 'run --manifest-path backend/Cargo.toml'", "backend:dev": "cargo watch -w backend -x 'run --manifest-path backend/Cargo.toml'",
"backend:build": "cargo build --release --manifest-path backend/Cargo.toml", "backend:build": "cargo build --release --manifest-path backend/Cargo.toml",
"backend:run": "cargo run --manifest-path backend/Cargo.toml", "backend:run": "cargo run --manifest-path backend/Cargo.toml",
"backend:test": "cargo test --lib", "backend:test": "cargo test --lib",