This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
talking-drupal-tailwindcss/run
2022-06-08 10:41:02 +01:00

22 lines
450 B
Bash
Executable file

#!/bin/bash
function yarn:build:css {
# Build the CSS assets, this is intended to be run within the "assets" container.
local args=()
if [[ "$NODE_ENV" == "development" ]]; then
args=(--watch)
else
args=(--minify)
fi
tailwindcss \
--config assets/tailwind.config.js \
--content "templates/**/*.html.twig" \
--input assets/css/tailwind.css \
--output public/build/tailwind.css \
"${args[@]}"
}
eval "${@}"