Add Tailwind CSS
This commit is contained in:
parent
cd59c54aa8
commit
d1034af1d7
7 changed files with 756 additions and 3 deletions
15
run
15
run
|
@ -3,8 +3,21 @@
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
function build:css {
|
||||
local args=()
|
||||
|
||||
if [[ "${NODE_ENV:-}" == "production" ]]; then
|
||||
args=(--minify)
|
||||
else
|
||||
args=(--watch)
|
||||
fi
|
||||
|
||||
npx tailwindcss --content "source/**/*.html.twig" \
|
||||
--output source/build/tailwind.css "${args[@]}"
|
||||
}
|
||||
|
||||
function clean {
|
||||
rm -fr output_*/ vendor/
|
||||
rm -fr node_modules/ output_*/ source/build/ vendor/
|
||||
}
|
||||
|
||||
function generate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue