feat(frontend): integrate tailwind pipeline and update templates
This commit is contained in:
@ -14,6 +14,14 @@ if [ "${AUTO_APPLY_MIGRATIONS:-0}" = "1" ] && [ "$1" = "gunicorn" ]; then
|
||||
fi
|
||||
|
||||
if [ "${AUTO_COLLECTSTATIC:-0}" = "1" ] && [ "$1" = "gunicorn" ]; then
|
||||
if [ "${AUTO_BUILD_TAILWIND:-1}" = "1" ] && [ -f /app/package.json ]; then
|
||||
echo "Building Tailwind assets..."
|
||||
if [ ! -d /app/node_modules ]; then
|
||||
npm install --no-audit --no-fund
|
||||
fi
|
||||
npm run build
|
||||
fi
|
||||
|
||||
echo "Collecting static files..."
|
||||
python manage.py collectstatic --noinput
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user