Improve light/dark theme toggle
This commit is contained in:
@@ -4,6 +4,7 @@ initialize: npm css migrate sethookdir loadplatforms
|
||||
|
||||
HTMLFILES := $(shell find games/templates -type f)
|
||||
PYTHON_VERSION = 3.12
|
||||
.PHONY: build frontend-dev frontend-build
|
||||
|
||||
npm:
|
||||
npm install
|
||||
@@ -24,13 +25,26 @@ init:
|
||||
poetry install
|
||||
npm install
|
||||
|
||||
# Run Django, Tailwind, and Vite development servers concurrently
|
||||
dev:
|
||||
@npx concurrently \
|
||||
--names "Django,Tailwind" \
|
||||
--prefix-colors "blue,green" \
|
||||
--names "Django,Tailwind,Vite" \
|
||||
--prefix-colors "blue,green,yellow" \
|
||||
"poetry run python -Wa manage.py runserver" \
|
||||
"npx tailwindcss -i ./common/input.css -o ./games/static/base.css --watch"
|
||||
"npx tailwindcss -i ./common/input.css -o ./games/static/base.css --watch" \
|
||||
"npm run dev"
|
||||
|
||||
# Only start the Vite development server
|
||||
frontend-dev:
|
||||
npm run dev
|
||||
|
||||
# Build frontend assets for production
|
||||
build: frontend-build collectstatic
|
||||
|
||||
# Only build frontend assets
|
||||
frontend-build:
|
||||
@echo "Building frontend assets with Vite..."
|
||||
npm run build
|
||||
|
||||
caddy:
|
||||
caddy run --watch
|
||||
|
||||
Reference in New Issue
Block a user